diff --git a/chatlogs/example-chatlog.tmp.yml b/chatlogs/example-chatlog.tmp.yml deleted file mode 100644 index ac71dc8..0000000 --- a/chatlogs/example-chatlog.tmp.yml +++ /dev/null @@ -1 +0,0 @@ -["Hello", "Hi"] diff --git a/run.py b/run.py index c7b1a75..f83aaa2 100644 --- a/run.py +++ b/run.py @@ -49,6 +49,7 @@ async def train(): @bot.event async def on_ready(): + global chatbot print("Logged in!") args = sys.argv args.pop(0) @@ -75,12 +76,10 @@ async def on_ready(): print("Finished download!") if tasks[1]: os.system("rm db.sqlite3") - global chatbot chatbot = ChatBot(config["botname"]) await train() print("Finished train!") else: - global chatbot chatbot = ChatBot(config["botname"]) bot.run(config["token"])