Closed ghost closed 8 years ago
You should be able to use the rts-modbroadcast message type for receiving these messages.
For @mb -> /mb you should be able to create a custom command in your bot just like any other command.
It does not work as the my command can not be run from the console.
Forgot to mention see https://github.com/cnaude/PurpleIRC/blob/master/src/main/resources/SampleBot.yml for an example how to use mb command.
Would it be possible to hook into ReportRTS somehow and have the "mod broadcast" command relay to a staff channel?
command from ReportRTS: https://github.com/ProjectInfinity/ReportRTS/blob/master/src/main/java/com/nyancraft/reportrts/command/LegacyCommandListener.java#L18
ie:
In-Game:
/mb this new user is noob!
> IRC #staff<BOT> MB: This new user is noob!
IRC #staff:
is anyone helping the noob in-game?
> ReportRTSModBroadcast: is anyone helping the noob in-game?
Or possibly a command to relay back though the bot to the modbroadcast?
IRC #staff:
@mb is anyone helping the noob in-game?
> ReportRTSModBroadcast: is anyone helping the noob in-game?