This is a very simple bot written in discord.py that gives you cats if you write the command cat!
into chat
You will need to create a file called .env
in the main directory.
Inside the .env
file, you will need to add the text DISCORD_TOKEN={your_discord_token}
(replace {your_discord_token}
with your actual discord bot token).
In a new line inside the .env
file, you will need to add the text BOT_OWNER_ID={your_discord_userid}
(replace {your_discord_userid}
with your actual discord user id)
In the end your .env
file should look like this1:
DISCORD_TOKEN=bjyab6sy6NxcLb4GR9a.pqCFFz_F_snPzHhi$q4mhzgob5dR@KBde5
BOT_OWNER_ID=123456789012345678
To invite your bot to your server, you will need an oauth2 link.
The permission code needed is 5288
and the scope is bot%20applications.commands
The link should look like this with {your_application_client_id}
replaced with the Oauth2 > client Information > CLIENT ID of your application:
Footnotes
-
The values presented in this example are fake and should not be usable in this state. ↩