Skip to content

Commit 4888ac0

Browse files
committed
removed superlikes capability for now
1 parent d28d915 commit 4888ac0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

backend/PyMatcha/utils/bot_actions.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
from PyMatcha.utils.static import BOT_CONV_OPENERS
1515

1616

17+
# TODO: DO superlikes
18+
19+
1720
def _bot_response(bot_name, user_input):
1821
logging.debug(f"Starting chatbot with name {bot_name}")
1922
chatbot = ChatBot(
@@ -43,7 +46,7 @@ def _get_recommendations(bot_user: User):
4346
return json.loads(recommendations)
4447

4548

46-
def botaction_like(bot_user: User, is_superlike: bool):
49+
def botaction_like(bot_user: User):
4750
recommendations = _get_recommendations(bot_user)
4851
liked_ids = [like.liked_id for like in bot_user.get_likes_sent()]
4952
for user in recommendations:
@@ -53,7 +56,7 @@ def botaction_like(bot_user: User, is_superlike: bool):
5356
user_to_like = choice(recommendations)
5457
except IndexError:
5558
return
56-
Like.create(liker_id=bot_user.id, liked_id=user_to_like["id"], is_superlike=is_superlike)
59+
Like.create(liker_id=bot_user.id, liked_id=user_to_like["id"])
5760

5861

5962
def botaction_unlike(bot_user: User):

0 commit comments

Comments
 (0)