- Head over to Carter's Controller and create an account if you havent allready.
- Create a Project and an agent - Follow the instructions that are given on the Controller to create your agent.
- Create an API key and Copy it to your clipboard.
- Visit the Discord Developer Portal at https://discord.com/developers/applications.
- Log in with your Discord account.
- Click on the "New Application" button.
- Enter a name for your bot and click "Create."
- In your application settings, navigate to the "Bot" tab on the left sidebar.
- Click on the "Add Bot" button.
- Confirm the action by clicking "Yes, do it!" when prompted.
- Under the "Token" section, click on the "Copy" button to copy your bot token. Keep this token secure, as it provides access to your bot.
- Turn on the following sliders to allow our bot to be operational:
- PRESENCE INTENT
- SERVER MEMBERS INTENT
- MESSAGE CONTENT INTENT
- PUBLIC BOT - That is optional
- In the Developer Portal, go to the "OAuth2" tab on the left sidebar.
- Under the "Scopes" section, select the "bot" checkbox.
- In the "Bot Permissions" section, choose the permissions your bot requires.
- Copy the generated OAuth2 URL.
- Open a new browser tab and paste the URL. Choose the server where you want to add the bot and authorize it.
- Create an
.env
in the base directory it should look somehing like this:
DISCORD_TOKEN = ENTER TOKEN
BOT_PREFIX = CREATE A PREFIX
CARTER_TOKEN = ENTER CARTERAPI KEY
- Install Dependencies: Open your terminal and navigate to the directory containing the source code files. Run the following command to install the required dependencies:
pip install -r requirements.txt
- In
bot.py
you can customise the following:
- Name of discord Bot >>
line 15
- Discord activity presence >>
line 20
- Name of discord bot in all lowercase >>
line 52
- Open your terminal
- Run
python bot.py
to be able to run your bot
If you find a bug or would like to suggest a new feature, please open an issue on the GitHub repository. Pull requests & Forks are also welcome.
Thanks to @TheKronis for the base template that I have expanded on & @Cipher58 as well for some development
- Carter's Documentation: https://docs.carterlabs.ai/
- Discord Dev Portal's Documenation : https://discord.com/developers/docs/intro/
This project is licensed under the MIT License. See the LICENSE file for more information.
This project will be having limited edits to it from me as the owner but still feel free to create Pull Requests. I will still autorise them and monitor this.