diff --git a/1.2/bot.conf b/1.2/bot.conf index fb7325c..b5491cc 100644 --- a/1.2/bot.conf +++ b/1.2/bot.conf @@ -1,4 +1,5 @@ [config] +token = OTg2NDA4MjM3Njg5NjMwNzYx.Gn3sV3.af4MeWrAct-e6FyN6oDWt-QaOfOHuYBY97Vw7k replytobot = false [modules] diff --git a/1.2/bot.py b/1.2/bot.py index f3323a5..1346e50 100644 --- a/1.2/bot.py +++ b/1.2/bot.py @@ -5,14 +5,14 @@ import random client = discord.Client() avgtimelst = [] + #loading config files botconf = configparser.ConfigParser() botconf.read("bot.conf") triggerbotconf = configparser.ConfigParser() triggerbotconf.read("triggerbot.conf") quotebotconf = configparser.ConfigParser() -quotebotconf.read("quotebot.config") - +quotebotconf.read("quotebot.conf") #bot info @@ -50,7 +50,7 @@ async def on_message(message): elif triggers[b] in msg: print("balls") found = "true" - await message.channel.send("hello") + await message.channel.send(triggerbotconfig["replys"][""]) else: print("something happened") @@ -67,5 +67,4 @@ async def on_message(message): print("\n end client.event \n time: " + str(reventime) + "\n average time: " + avgtime) - -client.run('OTg2NDA4MjM3Njg5NjMwNzYx.GZZchW.Aymv6QYXFPcvrT6YqBmJIhB_HKWZK1UOEKeIVo') +client.run(botconf["config"]["token"])