Skip to content

confusedbread/BreadBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BreadBot

A discord bot for my personal usage. Currently a work in progress.

Setup

For obvious reasons the file .bot-key is not provided. Create your own and put in your bot key into the file.

Prerequisites

  • Python 3.5+ ; Lowest version tested: 3.6
  • discord.py

API

app.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)

commands/

Module definition for simple commands.

async def hello(bot, message):
    await message.channel.send('Hello! Me Bot {}'.format('🀇'))

features/

Module support both for more complex features and one offs.

TODO: Features

  • Music bot integration
  • Japanese Translator Ingtegration Python romkan library

Deploy

Heroku autodeploys on changes to master

  • heroku ps:scale worker=1
  • heroku logs --tail

Docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages