radiantly / live-countdown-bot

A discord bot that counts down to an event. Used in 60k+ servers.
MIT License
32 stars 30 forks source link

Appends original request to end of Countdown Complete message #49

Closed StrykerSKS closed 1 year ago

StrykerSKS commented 1 year ago

…own Finished Sequence#

radiantly commented 1 year ago

Hey! Thanks for your contribution!

Looks good except for one thing: I'm wondering if this can be used to mention @\everyone? The allowedMentions property might need to be set according to whether the user that sent the original message has permissions to mention or not.

StrykerSKS commented 1 year ago

I didn’t change any of the existing permissions handling. All it does is leverage the existing code but add the original message.

StrykerSKS commented 1 year ago

Also, you can consider this a proof of concept if you prefer. The "Original message" text probably needs to be wrapped in a translation string so that it is translated. Or you could just remove that text.

It is useful for me on my self hosted version. And I know it has been requested a LOT for the main bot, so wanted to show that it isn't that hard to get something implemented.

radiantly commented 1 year ago

Awesome, thanks!