A discord bot for my personal usage. Currently a work in progress.
For obvious reasons the file .bot-key is not provided. Create your own and put in your bot key into the file.
- Python 3.5+ ; Lowest version tested: 3.6
- discord.py
Add new async event consumers:
@bot.event
async def on_some_event(payload):
# send payload to data handler
data_handler(payload)These are defined by the Client API provided by discord.py (https://discordpy.readthedocs.io/en/latest/api.html#client)
Module definition for simple commands.
async def hello(bot, message):
await message.channel.send('Hello! Me Bot {}'.format('🀇'))
Module support both for more complex features and one offs.
TODO: Features
- Music bot integration
- Japanese Translator Ingtegration Python romkan library
Heroku autodeploys on changes to master
heroku ps:scale worker=1heroku logs --tail
- discord.py: https://discordpy.readthedocs.io/en/latest/api.html#
- twich api: https://dev.twitch.tv/docs/api/reference
- heroku startup: https://devcenter.heroku.com/articles/getting-started-with-python?singlepage=true
- heroku dashboard: https://dashboard.heroku.com/apps/confusedbread-bot/resources