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)