2018-01-08 09:30:31 -06:00
|
|
|
"""Discord bot Hitomi and its library functions."""
|
|
|
|
from discord.ext import commands
|
2018-01-09 13:29:12 -06:00
|
|
|
from django.conf import settings
|
2018-01-08 09:30:31 -06:00
|
|
|
|
|
|
|
BOT_DESCRIPTION = "A simple Discord bot."
|
|
|
|
|
2018-01-09 15:16:01 -06:00
|
|
|
|
|
|
|
class Hitomi(commands.Bot):
|
|
|
|
"""Extend the discord.py Bot, to add more cool stuff."""
|
|
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
"""Initialize bot, and cool stuff."""
|
|
|
|
super(Hitomi, self).__init__(*args, **kwargs)
|
|
|
|
self.on_message_handlers = []
|
|
|
|
|
|
|
|
|
|
|
|
hitomi = Hitomi(command_prefix='!', description=BOT_DESCRIPTION, max_messages=settings.DISCORD_BOT_MAX_MESSAGES)
|