From aada203639a86ccf3d3b3c551f4de3291b88668c Mon Sep 17 00:00:00 2001 From: blackfur <64478051+theblackfurguy@users.noreply.github.com> Date: Thu, 21 Jan 2021 17:26:20 +0100 Subject: [PATCH] Added more Temporary project files to .gitignore, Added notification in the console when the bot is ready --- .gitignore | 2 ++ config.yml | 7 ------- run.py | 3 ++- 3 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 config.yml diff --git a/.gitignore b/.gitignore index 322a323..e0e0ce7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,6 @@ venv/ chatlogs/ db.sqlite3 +db.sqlite3-shm +db.sqlite3-wal config.yml \ No newline at end of file diff --git a/config.yml b/config.yml deleted file mode 100644 index 4e9e452..0000000 --- a/config.yml +++ /dev/null @@ -1,7 +0,0 @@ -botname: "ChatBot" -excludeprefix: "!" -filterpings: True -usechannels: [] -trainchannels: [[]] -corpus: ["chatterbot.english"] -token: "TOKEN" diff --git a/run.py b/run.py index 52466de..e08ae70 100644 --- a/run.py +++ b/run.py @@ -91,6 +91,7 @@ async def on_ready(): chatbot = ChatBot(config["botname"]) global finished finished = True + print("Starting to listen to messages...") @bot.event @@ -98,7 +99,7 @@ async def on_message(message): if finished: if message.author != bot.user: if message.channel.id in config["usechannels"]: - if message.content.startswith(config["exclutionprefix"]): + if message.content.startswith(config["excludeprefix"]): return else: response = chatbot.get_response(message.content)