AtariBot is a multi-purpose bot with many features for moderation, fun and administration.
- Every command has a description for the
function,arguments,permissions,aliasesand on how to use the commands. - Permissions are set for each command.
- In this case normal users can't execute commands used by moderators or administartors.
- In this case normal users can't execute commands used by moderators or administartors.
- A lot of embeds were used for the commands in order to make it looks more clean and easier to read.
- This bot adds many commands for moderation, administration, information and fun.
- Take a look at the
DSharpPlus Documentationin order to create your own commands. - You can also add commands for youself easily by taking a look at the default commands in order to see how they were made.
- Take a look at the
- Download the source code of the bot [here].
- Visit the Discord Developer Portal and go to
Applications. - Create a new Application and open it.
- Go to the
Bottab on the left side andadd a new Bot. - Copy the
Tokenand paste it into theprogram.csclass here:
discord = new DiscordClient(new DiscordConfiguration
{
Token = "Paste your Token here",
TokenType = TokenType.Bot, MinimumLogLevel = Microsoft.Extensions.Logging.LogLevel.Debug,
}); - Go back to the Discord Developer Portal and go into the
General Informationtab. - Now copy the
Application IDand open [this URL] on a new tab and change theApplication IDfrom711550600286044201to the one you copied. - Refresh the page and choose your discord server in the dropdown list. The bot will now join your server.
- Create a new
Console App (.NET)project. - Add the source code into your project by dragging and dropping all files and folders into your project directory.
- Add the DSharpPlus API to your project. (Use the
NuGet Managerfor adding the API.) - Change everything to your liking. (Have a look above on how to create a
bot application) - Now you only need to
compile the program. In order to start your bot, go into your project files and start theAtariBot.exe.
The bot is only online when the AtariBot.exe is running. If you want to have the bot online 24/7, you need to rent a server and start the AtariBot.exe from the server. (For uploading the files, you need to use a program that supports FTP.)
- Go into one of the Modules. (In this case I use the
MiscModule.). - Now find the command where you want to change the permissions. (In this case I use the
msgcommand.). - After you have found the command, find the following
if statement:
if (!ctx.Member.PermissionsIn(ctx.Channel).HasPermission(Permissions.BanMembers)) {
//If the user has not enough permissions, this block of code runs.
}
else {
//If the user has enough permissions, this block of code runs.
}- The only thing you need to change are the permissions in the statement. (For example: from
Permissions.BanMemberstoPermissions.Administrator.) - If you don't want any permissions to be required in order to use a command, just leave the
if statementaway.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.