Discord bot sample

Refs

Prepare the Discord Bot

1. Create the discord bot.

2. Get the bot token.

3. Invite a bot to your guild (server).

How to use

  1. Setup config.py
$ cp ./bot/config.py.sample ./bot/config.py
  1. Add your token to config.py
# BOT
bot_token = "xxxxxxxxxxxxxxx" # <--- bot token
  1. Run
$ docker-compose build
$ docker-compose run bot python bot.py
Logged in as: sample app (ID: 747806654476714056)
  1. Check your discord guild, and use command!
user: >hello
bot: hello, user.