more security = more better
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ class General(object):
|
||||
self.voice_states = {}
|
||||
self.r = praw.Reddit(
|
||||
user_agent='StroopwafelBot',
|
||||
client_secret='Z4K17T8TC26cNAgDSRxCkE9jYR4',
|
||||
client_id='aWeyKpzdHMtmJQ'
|
||||
client_secret=self.bot.tokens["redditSecret"],
|
||||
client_id=self.bot.tokens["redditId"]
|
||||
)
|
||||
self.r.read_only = True
|
||||
f = open("password.txt","r")
|
||||
|
||||
+7
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user