You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to detect a message with a specific keyword, and tried this example
`from tangerine import Tangerine
tangerine = Tangerine("xoxb-xx")
@tangerine.listen_for('m')
def getspa(user, message):
s = 'I see you like ' + message
print(message)
return s
if name == "main":
tangerine.run()
`
The problem is that, I received several repeated messages, so for example , I entered:
just the letter m I got:
I see you like m
I see you like I see you like m
I see you like I see you like I see you like m
and it goes on and on till I kill it.
am I doing something wrong?
Thanks
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to detect a message with a specific keyword, and tried this example
`from tangerine import Tangerine
tangerine = Tangerine("xoxb-xx")
@tangerine.listen_for('m')
def getspa(user, message):
s = 'I see you like ' + message
print(message)
return s
@tangerine.listen_for('morning')
def morning(user, message):
return "mornin' @{user.username}"
if name == "main":
tangerine.run()
`
The problem is that, I received several repeated messages, so for example , I entered:
just the letter m I got:
I see you like m
I see you like I see you like m
I see you like I see you like I see you like m
and it goes on and on till I kill it.
am I doing something wrong?
Thanks
The text was updated successfully, but these errors were encountered: