Twentysix26 / x26-Cogs

General purpose cogs for Red V3
GNU General Public License v3.0
41 stars 29 forks source link

[Feature request] Add the ability to ping mentionable roles via send-to-channel or with an additional action #10

Closed blanksuspect closed 3 years ago

blanksuspect commented 3 years ago

Cog

Describe the feature you'd like to see I would like to be able to use the send-to-channel action to ping a mentionable role.

For instance, if an on-emergency event was triggered, I'd like to be able to send a message to a specific channel like:

send-to-channel: [HelperAlerts, "@HelperRole, Emergency Mode has been enabled."] where HelperRole is set to allow mentions.

Twentysix26 commented 3 years ago

Added in https://github.com/Twentysix26/x26-Cogs/commit/fc3e898fc5db685c8e5955e1ebf0f9b12f1aaac4

The message context variable is escaped automatically to prevent unwanted mentions coming from external sources