The bot sometime ignores !poll messages
Opened this issue · 4 comments
The matrix-poll-bot started and seam to work.
$ ./matrix-poll-bot ./config.yaml
INFO[0000] Syncing...
INFO[0061] Trying to join room !:<yyy.de> I was invited to
INFO[0062] Successfully joined room !:<yyy.de>
Then I wrote in this room in Riot-web:
!poll Test
But nothing happened.
In the homeserver.log from Synapse I didn't found anything enlightening.
What can I try next?
Hey, as shown on the screenshot in the readme file, you need to send your message this way:
!poll [question]
🌮 Choice 1
🎉 Choice 2
The account sending it doesn't matter as long as it's in the same room as the bot. You can provide as many choices as you wish as long as each choice is written on a separate line and that line starts with an emoji (I know that a few emojis might not work, though, I need to fix the regexp I'm using).
There's a bit of input control missing here, it shouldn't have triggered if only provided with a question (and no choices). That's on the todo list as well as a !help
command, I'll have a look at both when I have some time.
Thanks for your quick answer.
But, I still don't get it.
As you can see on the screenshot.
First Line, I send a "!poll Yes or No"
Then new/empty line. (I tried it also without an empty line)
On the second line a emoji, space, text
On the third line the same.
Then I send the message.
I tried it also with various emojis. But nothing happens.