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

example_bot.py Hi command floods forever #19

Open
vranki opened this issue Jan 18, 2019 · 3 comments
Open

example_bot.py Hi command floods forever #19

vranki opened this issue Jan 18, 2019 · 3 comments

Comments

@vranki
Copy link

vranki commented Jan 18, 2019

I just tested the example bot with a direct chat and said "Hi".

It replied with

Hi, @<my_id>:matrix.org
Hi, @<bot's_own_id>:matrix.org
Hi, @<bot's_own_id>:matrix.org
Hi, @<bot's_own_id>:matrix.org
Hi, @<bot's_own_id>:matrix.org

.. forever until I stopped the bot.

@shawnanastasio
Copy link
Owner

Did you properly set the username in example_bot.py?

The bot filters out its own messages from triggering handlers by checking to see if the message was sent by the username that the MatrixBotAPI instance was constructed with.

@vranki
Copy link
Author

vranki commented Jan 21, 2019

I set it as the matrix id (@<bot's_own_id>:matrix.org) .. should it be the full ID or just the username part without homeserver?

@shawnanastasio
Copy link
Owner

It should just be the username (w/o server). Perhaps this should be clarified in the documentation

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

2 participants