Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tangerine returns messages several times #33

Open
geoapi opened this issue Feb 19, 2019 · 0 comments
Open

Tangerine returns messages several times #33

geoapi opened this issue Feb 19, 2019 · 0 comments

Comments

@geoapi
Copy link

geoapi commented Feb 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant