more security = more better

This commit is contained in:
JP
2018-10-21 16:33:35 +02:00
parent 6a28173ce4
commit 291358300f
2 changed files with 9 additions and 10 deletions
+7 -8
View File
@@ -15,15 +15,8 @@ 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()
#Read configuration file:
config = configparser.ConfigParser()
config.read('stroopwafel.ini')
bot.tokens = config["tokens"]
@@ -37,6 +30,12 @@ for pw in config["passwords"]:
print("Problem with decoding password!")
bot.passwords[pw] = config["passwords"][pw]
#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))
@bot.event
@asyncio.coroutine