AtariBot is a multi-purpose bot with many features for moderation, fun and administration.
- Every command has a description for the
function
,arguments
,permissions
,aliases
and 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 Documentation
in 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
Bot
tab on the left side andadd a new Bot
. - Copy the
Token
and paste it into theprogram.cs
class 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 Information
tab. - Now copy the
Application ID
and open [this URL] on a new tab and change theApplication ID
from711550600286044201
to 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 Manager
for 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
msg
command.). - 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.BanMembers
toPermissions.Administrator
.) - If you don't want any permissions to be required in order to use a command, just leave the
if statement
away.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request