TEN POINTS TO GRYFFINDORgit pull
This commit is contained in:
+8
-1
@@ -5,6 +5,7 @@ import Shitpost
|
||||
import General
|
||||
import Cryptocoin
|
||||
import Chatbot
|
||||
import Points
|
||||
import logging
|
||||
import importlib
|
||||
import configparser
|
||||
@@ -20,7 +21,9 @@ bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='
|
||||
config = configparser.ConfigParser()
|
||||
config.read('stroopwafel.ini')
|
||||
bot.tokens = config["tokens"]
|
||||
bot.hdChannels = config["channels"]
|
||||
bot.hdChannels = {}
|
||||
for channel in config["channels"]: #channelIDs must be integers
|
||||
bot.hdChannels[channel] = int(config["channels"][channel])
|
||||
#passwords are base64 encoded, which makes it like 1% safer
|
||||
bot.passwords = {}
|
||||
for pw in config["passwords"]:
|
||||
@@ -36,10 +39,14 @@ bot.add_cog(Shitpost.Shitpost(bot))
|
||||
bot.add_cog(General.General(bot))
|
||||
bot.add_cog(Cryptocoin.Cryptocoin(bot))
|
||||
bot.add_cog(Chatbot.Chatbot(bot))
|
||||
pointsBot = Points.Points(bot)
|
||||
bot.add_cog(pointsBot)
|
||||
|
||||
@bot.event
|
||||
@asyncio.coroutine
|
||||
def on_ready():
|
||||
print('Logged in as:\n{0} (ID: {0.id})'.format(bot.user))
|
||||
#TODO: find out how to do this properly:
|
||||
pointsBot.init()
|
||||
|
||||
bot.run(bot.tokens["discordbot"])
|
||||
|
||||
Reference in New Issue
Block a user