cnaude / PurpleIRC

Minecraft Bukkit plugin that provides an IRC bridge. This repo has been archived. Please see https://github.com/cnaude/PurpleIRC-spigot for the latest and greatest PurpleIRC code for Bukkit servers (Spigot, Paper etc...)
20 stars 9 forks source link

Add ReportRTS "mb" moderator broadcast hook? #87

Closed ghost closed 8 years ago

ghost commented 10 years ago

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? > ReportRTS ModBroadcast: 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? > ReportRTS ModBroadcast: is anyone helping the noob in-game?

cnaude commented 10 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.

ghost commented 10 years ago

It does not work as the my command can not be run from the console.

cnaude commented 10 years ago

http://h.cnaude.org:8081/job/PurpleIRC/150/

cnaude commented 10 years ago

Forgot to mention see https://github.com/cnaude/PurpleIRC/blob/master/src/main/resources/SampleBot.yml for an example how to use mb command.