more security = more better
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ class General(object):
|
|||||||
self.voice_states = {}
|
self.voice_states = {}
|
||||||
self.r = praw.Reddit(
|
self.r = praw.Reddit(
|
||||||
user_agent='StroopwafelBot',
|
user_agent='StroopwafelBot',
|
||||||
client_secret='Z4K17T8TC26cNAgDSRxCkE9jYR4',
|
client_secret=self.bot.tokens["redditSecret"],
|
||||||
client_id='aWeyKpzdHMtmJQ'
|
client_id=self.bot.tokens["redditId"]
|
||||||
)
|
)
|
||||||
self.r.read_only = True
|
self.r.read_only = True
|
||||||
f = open("password.txt","r")
|
f = open("password.txt","r")
|
||||||
|
|||||||
+7
-8
@@ -15,15 +15,8 @@ from discord.ext import commands
|
|||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
|
||||||
bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='Stroopwafel. Shitpost bot extraordinaire.', pm_help=True)
|
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")
|
#Read configuration file:
|
||||||
#token = tokenfile.readline().strip()
|
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read('stroopwafel.ini')
|
config.read('stroopwafel.ini')
|
||||||
bot.tokens = config["tokens"]
|
bot.tokens = config["tokens"]
|
||||||
@@ -37,6 +30,12 @@ for pw in config["passwords"]:
|
|||||||
print("Problem with decoding password!")
|
print("Problem with decoding password!")
|
||||||
bot.passwords[pw] = config["passwords"][pw]
|
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
|
@bot.event
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
|||||||
Reference in New Issue
Block a user