Initial version

This commit is contained in:
Mark Hoekveen
2020-06-29 22:58:08 +02:00
commit ec96b714e3
2 changed files with 68 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import asyncio
import discord
import Timer
import importlib
import configparser
from discord.ext import commands
bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='Hourglass, bot that does timers', pm_help=True)
#Read configuration file:
config = configparser.ConfigParser()
config.read('settings.ini')
bot.add_cog(Timer.Timer(bot))
@bot.event
async def on_ready():
print('Logged in as:\n{0} (ID: {0.id})'.format(bot.user))
bot.run(config["tokens"]["bot"])