-
Notifications
You must be signed in to change notification settings - Fork 62
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
[Discord]: bot not listening in room? #121
Comments
Thanks for the report. We'll take a look and see what's going on. |
Did some digging and it looks like it's a two-part issue.
I have a fix for 1. and I'll see how much headway I can make on 2. |
Brilliant, thank you. :) |
I've pulled the changes into my local repo and it still doesn't seem to work. I can see the changes in the code (e.g. the bit about the User Server Message ID), but my bot still won't respond on the channel. |
Interesting, I saw you commented on the docs site about whether the docker run command needed to be updated to pass in the new variable. Safe to presume that you did that with your test? PS: also, thanks for testing! |
Yup, did, which is why I realised it wasn't being passed in, hence my doc comment. The variables seen inside the docker container (for me) are:
I pass in: DISCORD_SERVER_ID via and the bot still doesn't seen the #general room. |
But the bot is responsive (ie. it shows as online) and accepts commands.. is the issue limited to #general? |
Yes, the bot shows as online, responds to commands when you interact with it directly, but doesn't respond to room triggers or room mentions (yet shows as online inside the room), also the bot doesn't seem to realise it is inside the room, since when I try to use the |
ok, thanks.. i don't recall specifically trying with #general, but the room functionality seemed to work fine for me when i tested, so i will give it a couple more spins to see if i can replicate.. |
so, i copied your rule verbatim (thanks for providing that) and am not having any issues.. works with just supplying |
Yes, I did a git pull and everything. Let me try a clean git checkout |
i mean... you followed that by |
Ah, I was still using the image |
Yes, that makes sense. We need to update our release process to publish latest code to the |
And now it works :) For reference:
|
excellent. thanks for your patience! we feel more comfortable cutting a release now. probably in the next day or two. then you'll be able to use |
Thanks :) |
Report
Bot seemingly not listening on room in Discord
(Appreciate Discord is still showing as WIP, so if this is something that is still being worked on, please feel free to close this issue)
What did you do?
Followed https://target.github.io/flottbot-docs/basics/discord/ to setup bot and got it added to a test server.
It shows up as online, and I can directly interact with the bot and it responds to rules (such as the hello.yml one in the example docs)
However, the bot does not seem to respond to triggers on the room it is sitting in. For example, if I use the trigger
hello
in a DM, it responds happily. But if I do it in the room, it doesn't.I also added the
announce.yml
example (/~https://github.com/target/flottbot/blob/master/config-example/rules/announce.yml) and when I run it on a DM, I see this on the bot's logs:Trying different variations (e.g. '#general', 'general', "general") didn't help. It's like the bot can't see the channel, even though it is inside the server.
What did you expect to happen?
The bot should respond to triggers on the channel, unless otherwise excluded
What happened instead?
The bot did not listen to triggers on the channel
Screenshots
N/A
Your Environment
target/flottbot:latest
hello.yml
announce.yml
Additional context
N/A
The text was updated successfully, but these errors were encountered: