wowchat
wowchat copied to clipboard
Sent /script commands
Hey there!
Thank you very much for your work. We love it in our guild.
I tried to find a way to send "/SCRIPT" commands. For example to set a Gmotd. Is there any way to do that? Or any chance you could include that?
Thank you again! Suzu
Hi Suzaru, thanks for the feedback. It's a good idea but it requires a bit more thought than is immediately apparent:
- It is not as simple as just sending "/gmotd stuff" as a chat message to the server. In fact, it requires the bot to realize you are trying to set the gmotd and send the request to server in a special way using the gmotd packet. This is actually not a big deal, the bot could do this, I am just highlighting that "/SCRIPT" commands are not a general chat message.
- Let's assume that we implement a way for the bot to send many /SCRIPT commands, including /gmotd. You'd have to make the bot an officer in your guild. Since the bot internally does not keep an access list, anyone who can talk in the discord channel could promote/demote people, set gmotd, kick people out of the guild, etc... This is obviously a huge security hole so we would have to implement an access list or maybe some other system like only if you send /SCRIPT commands in a discord "officers" channel where only officers can send messages, it would respect them. Personally, I would probably choose the discord channel route, since it is in the spirit of the project to let Discord control the different permissions.
In any case I have no plans to continue development at this time since I no longer play on private servers, but of course I'm always happy to help others make changes.