31 lines
796 B
Python
31 lines
796 B
Python
import asyncio
|
|
import discord
|
|
#import Music
|
|
import Shitpost
|
|
import General
|
|
import Cryptocoin
|
|
import Chatbot
|
|
import logging
|
|
import importlib
|
|
|
|
from discord.ext import commands
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='Stroopwafel. Shitpost bot extraordinaire.', pm_help=True)
|
|
#bot.add_cog(Music.Music(bot))
|
|
#TODO: Re-add music functions now that we require a stronger host
|
|
bot.add_cog(Shitpost.Shitpost(bot))
|
|
bot.add_cog(General.General(bot))
|
|
bot.add_cog(Cryptocoin.Cryptocoin(bot))
|
|
bot.add_cog(Chatbot.Chatbot(bot))
|
|
|
|
tokenfile = open("stroopwafel.token","r")
|
|
token = tokenfile.readline().strip()
|
|
@bot.event
|
|
@asyncio.coroutine
|
|
def on_ready():
|
|
print('Logged in as:\n{0} (ID: {0.id})'.format(bot.user))
|
|
|
|
bot.run(token)
|