zhaobenny / bz-cogs

Interesting cogs for Red Bot
MIT License
23 stars 14 forks source link

include discord system messages #43

Closed hollowstrawberry closed 3 months ago

hollowstrawberry commented 3 months ago

This change lets the bot read "system" chat messages, such as member join events.

For this aforementioned purpose, 2 very specific changes have been made:

  1. The display_name and id of the user who joined will be shown to the bot.

  2. It gives the bot implicit permission to ping the author of the message that triggered it. This would only come into play if the bot knew the id of said user, so normally this doesn't do anything.

These 2 changes in tandem allow the bot to serve as a welcome bot, by pinging a user when it joins and giving a personalized welcome message.

image