-
Notifications
You must be signed in to change notification settings - Fork 59
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
Slack API Tester is set off when a message happens in a DM #10
Comments
Odd. Is Slack API Tester the name of your archive bot? The only path into I have a fix that I think would ensure it only responds in DMs to itself, but I don't know how I would test it because I don't know how to get it into another DM, if that is indeed the problem. |
Thought I answered this earlier. Slack API Tester is a Slack tool that I believe is enabled automatically so that apps can call the Slack API. Name of my archive bot is timescale_ab. Did not add the bot to private DMs. |
I don't have Slack API Tester and couldn't find any documentation about it. Do you have any docs that I can see about setting it up? As I said, I think I have the fix but I can't recreate your issue to test it. |
I found the issue had to do at least partly with messages being responded too only if the user name wasn't bot, however the user name for my bot seemed to be |
Oh, how did you create the slack integration? Is it a bot or an app? |
@docmarionum1 I was setting up the bot following this guide But then, I used the Slack PI Legacy token |
I'm still baffled by how you two got that. I created a bot using an app as you did. But it still shouldn't be active in DMs between two human users. Is there a way to invite a bot to a DM? |
@docmarionum1 no, I don't think so. It seems the bot is triggering the API Tester somehow... |
Bot is trying to reply to its own messages. I suggest trying to resolve the issue by changing this line |
@maxkan A recent change, #14 allows you to specify the username of the bot, which, I think, will fix that issue. Have you tried this? If not, try running with the flag I've never actually been able to replicate this issue after setting up the app in a couple of different methods, so I can't verify that it in fact works, but it looks like it should. |
@docmarionum1 Thanks, your solution works on my env as well. I think it's a little bit confusing that App name should be used as is instead of using its machine name, i.e. if an app name is "Acme Test Bot", the machine name is "acme_test_bot", but parameter -b should be used with "Acme Test Bot". |
Seems to be fixed. |
This has been happening from time to time and I've no just traced it to the slack-archive-bot. When I type a message in a DM, the Slack API Tester rattles off "No results found." See the screenshots below. What might be going on here?
The text was updated successfully, but these errors were encountered: