Skip to content

Cordevall/Rust

Repository files navigation

Cordevall for Rust

Divider 1

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](https://discord.com/developers/applications).

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. For the sake of this example, you also need to scroll down on the bot page to the Message Content Intent section and enable that option.

To add the bot to a server we need to create an invite link.

On your bot's application page, open the OAuth2 page via the lefthand panel. Go to the URL Generator via the lefthand panel, and select the Bot scope as well as the Application commands permission in the Bot Permissions section. Copy the URL, open it in your browser and select a Discord server you wish to invite the bot to.

To Run/Deploying the Discord bot

Comming Soon

For more information please refer to the Discord docs as well as the Serenity repo for more examples. Divider 1

Publishing to github

When you publish you must follow the MIT Licence and include it.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages