Skip to content

Commit 864a570

Browse files
committed
Removed useless code and added base bot task
1 parent 1cddaa7 commit 864a570

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

backend/PyMatcha/utils/tasks.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,10 @@ def take_random_users_online():
141141
user.date_lastseen = datetime.datetime.utcnow()
142142
user.save()
143143
return "Successfully set 250 users online"
144+
145+
146+
@celery.task
147+
def random_bot_action():
148+
for user in User.get_multis(skip_recommendations=True):
149+
# TODO: Check notifications
150+
pass

chatbot.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@
1010
)
1111

1212
trainer = ChatterBotCorpusTrainer(chatbot)
13-
1413
trainer.train("chatterbot.corpus.english")
1514

16-
# ubuntu_trainer = UbuntuCorpusTrainer(chatbot)
17-
# ubuntu_trainer.train()
18-
1915
while True:
2016
user_input = input("> ")
2117
print(chatbot.get_response(user_input), flush=True)

0 commit comments

Comments
 (0)