File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1414from PyMatcha .utils .static import BOT_CONV_OPENERS
1515
1616
17+ # TODO: DO superlikes
18+
19+
1720def _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
5962def botaction_unlike (bot_user : User ):
You can’t perform that action at this time.
0 commit comments