-
-
Notifications
You must be signed in to change notification settings - Fork 3
Running the bot on Discord
Parth Parikh edited this page Oct 1, 2020
·
2 revisions
To start, this documentation by discordpy explains the procedure to create and invite a discord bot to your guild.
As we are using discord.py
for the bot, installation instructions for the same can be found in their README.
First, create a .env
file inside /src/
directory and store the following:
# .env
DISCORD_TOKEN={enter-your-discord-token}
DISCORD_GUILD={enter-your-guild-name}
After that change the LOAD_PATH=
line in discord_bot.py
to your PyTorchModel's (the BentoML model) latest path.
After entering the above information, run the following command:
python3.6 discord_bot.py
Your bot will start executing! Go to your guild and type something beginning with the magic command $tag
to call your bot.