- Dashborad
- Command and Event handler
- Both SlashCommand And PrefixCommands
In this example we will deploy a Serenity bot with Shuttle. To run this bot we need a valid Discord Token. To get started log in to the Discord developer portal.
- Click the New Application button, name your application and click Create.
- Navigate to the Bot tab in the lefthand menu, and add a new bot.
- On the bot page click the Reset Token button to reveal your token.
- Put this token in your
secrets.toml
by making a file and using the exsample. - It's very important that you don't reveal your token to anyone, as it can be abused.
- You might also need to scroll down on the bot page to the Privileged Gateway Intents section and enable all options.
- On your bot's application page, open the OAuth2 page via the lefthand panel.
- Go to the URL Generator via the lefthand panel.
- Select the
Bot
scope as well as theApplication commands
permission in the Bot Permissions section. - Copy the URL.
- Open it in your browser, Select a Discord server you wish to invite the bot to.
For more information please refer to the Discord docs as well as the Serenity repo for more examples.
When you publish you must follow the MIT Licence and include it.
And please Star this Template we are people who are doing this for free, not for work it means WE DON'T GET PAID.