ghost-discord / ghost

🤖 A modular, multi-feature Discord bot
GNU General Public License v3.0
23 stars 31 forks source link

Adds the possibility to trigger a command via a mention #36

Closed mpardoen closed 5 years ago

mpardoen commented 5 years ago

Changelist

Type of change

Local configuration:

mpardoen commented 5 years ago

This one adds the most basic way to trigger a command from a mention. It's possible to trigger a command via a mention anywhere in the message instead of the beginning only but it'll require some changes on the CommandContext class (the Trigger/args separation is not suitable for this purpose).

zocat64 commented 5 years ago

No need. There's less of a distinction between the command name and its arguments if we allow a mention anywhere in the message, so this change achieves the intended and optimal behavior.

Merging.