- Notifications
You must be signed in to change notification settings - Fork0
Simple custom prefix handler for discord .Net bot
License
NotificationsYou must be signed in to change notification settings
NascuBB/ShablePrefix
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Simple custom prefix handler on c# for discord bot
- Discord.NET compatible
- up to 500 servers(actually unlimited count of servers, but response speed decreases(depends on cpu))
- Default prefix
- simple to use
To connect custom prefixes to your bot you need:
usingShablePrefics;...//when bot is readyprivateasyncTaskOnReady(){/* if you connecting Shable prefix first time, before checking you must to create json file for guilds and their prefixes. Just write await Prefix.StartShable(), and you don't have to touch it anymore. */awaitPrefix.StartShable();//ready stuff}...//your command handlerprivateasyncTaskHandleCommandAsync(SocketMessagerawMessage){//your code/* when you're checking for prefix you must replace your default string prefix with await Prefix.GetPrefix(guild that requested(Example: context.Guild), default prefix of your bot) */if(message.HasStringPrefix(awaitPrefix.GetPrefix(context.Guild,_defaultPrefics),refargPos)&&!(message.HasMentionPrefix(_client.CurrentUser,refargPos))){//command responding etc}}
see more indocs
About
Simple custom prefix handler for discord .Net bot
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published