-
Notifications
You must be signed in to change notification settings - Fork 637
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
One way to fix bot_not_found due to SlackBot #520
Conversation
Specifically when /remind is setup to trigger a hubot event
Codecov Report
@@ Coverage Diff @@
## master #520 +/- ##
=======================================
Coverage 85.55% 85.55%
=======================================
Files 6 6
Lines 353 353
Branches 79 79
=======================================
Hits 302 302
Misses 29 29
Partials 22 22
Continue to review full report at Codecov.
|
Thanks for taking the time to offer a solution! I'll have to confirm this, but I think we know that slackbot always has bot ID if event.bot_id?
fetches.bot = if event.bot_id == "B01" then { user_id: "USLACKBOT" } else @fetchBotUser event.bot_id Then, when the code reaches this line, the fetch for the user representation would be made and resolved to a real user object (instead of just false). |
Apparently slackbot is no longer a bot
Ah that is likely a better solution. I didn't look too closely into how It seems like |
Also happen to know if the CLAassistant is based on username, or commit email, or both? (I was extra lazy and edited each file in the browser, so I'm not even sure what email these commits were created with, but wondering if that is the mis-match) Assuming that is the mismatch, shall I just sign the CLA again with whatever probably the eibwen@github email that these were likely created with? Or does it just take a while to update? |
I like that even better! We can just hardcode one entry into the map when its initialized here.
Slackbot is... a special snowflake ❄️. Ideally, yes, it makes more sense for slackbot to have |
I believe its just be Github username, or at least that seems to be the main key in the list of signatures I have access to. I could be wrong, or there could be something wrong with CLAassistant. Just to be sure, you clicked the yellow badge above and then signed into Github to agree, right? If you click that badge again, what do you see?
There's a link in the CLAassistant message to recheck. I clicked and nothing changed, so I assume its all caught up. |
Ah, I didn't click the badge the first time. Whatever I clicked just took me to the google form without requiring the GitHub App authorization, maybe from https://github.com/slackapi/hubot-slack/blob/master/.github/contributing.md ? Idk worked great when I clicked the badge! Did also change the email to the email the commits have, but with the App authorization I imagine it has access to all the emails on my github account |
Whoohoo! This is great. Thank you so much. |
fixes #519
Specifically when /remind is setup to trigger a hubot event
Summary
Prevent
bot_not_found
when looking up SlackBot usingbots.info
with id:B01 from causing an error that stops execution of listenersRequirements (place an
x
in each[ ]
)