warnet-gi / WarnetBot

A bot for Warga Nusantara Teyvat (WARNET) discord server
https://discord.gg/warnet-gi
MIT License
7 stars 4 forks source link

add support for prefixed commands #123

Open noiverre opened 6 months ago

noiverre commented 6 months ago

Is your feature request related to a problem? Please describe. give access to prefixed commands for certain roles and/or in certain channels or category

Describe the solution you'd like add slash command to register and delete prefixed commands define the cmd name with cmd parameter on the slash command define the text content using text parameter on the slash command

usage flow: /createtext cmd:hsr!speed text:https://pretend-this-is-a-hsr-speed-image-table.png /deletetext cmd:hsr!speed

the bot will read message create event and if the 1st word match any prefixed command, bot will send the text content to the chat in that channel or category

role checks aren't necessary

Describe alternatives you've considered use yagpdb

Additional context

Iqrar99 commented 6 months ago

Sounds interesting. I actually had a planning about invoking custom command long time ago