Skip to content

Commit

Permalink
Improve check slackbot name
Browse files Browse the repository at this point in the history
  • Loading branch information
vluzrmos committed Nov 19, 2020
1 parent d6f014f commit d800254
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Vluzrmos/SlackApi/Methods/User.php
Expand Up @@ -156,6 +156,8 @@ protected function isUserNick($user, $nick)
*/
protected function isSlackbotNick($nick)
{
return $nick == 'slackbot' or $nick == '@slackbot' or $nick == 'USLACKBOT';
$names = ['slackbot', '@slackbot', 'USLACKBOT'];

return in_array($nick, $names, true);
}
}

0 comments on commit d800254

Please sign in to comment.