Raku / whateverable

🤖 Different IRC bots that operate on a bunch of prebuilt Rakudo versions
https://gist.github.com/Whateverable
GNU Affero General Public License v3.0
18 stars 14 forks source link

Evalable: respond to discord even if camelia is present #358

Closed taboege closed 5 years ago

taboege commented 5 years ago

A follow-up to #357

Normally evalable6 leaves queries to camelia when she is around. But camelia does not support responding to discord, so in that case evalable6 should not restrain itself.

This is made possible by mixing a FromDiscord role into the nick field of messages (not the message itself because that would break event dispatch in IRC::Client) and testing for that while deciding whether to leave the message to camelia or not.

AlexDaniel commented 5 years ago

Nice! Thank you very much!