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

ESS Broadcast does not show in IRC. #119

Open ghost opened 8 years ago

ghost commented 8 years ago

So maybe this is by design, but when doing @broadcast (which sends broadcast <args> to the console) does not show back up in IRC.

Is i possible to have ESS broadcast send back to IRC channels when the broadcast is sent?

ghost commented 8 years ago

This is my bot config for a broadcast, how can i get this to show the same broadcast in IRC when i do the command?

  bcdiscord:
    modes: qho
    private: 'false'
    game_command: broadcast &6Join the party on &9&lDISCORD &r&5One-Click Voice Chat &b-=-&6 &3 https://goo.gl/CHgCVE
    private_listen: 'false'
    ctcp: 'false'
    channel_listen: 'true'
    perm: ''
    sender: CONSOLE
    game_command_usage: ''
    extra_commands: []
    user_masks: []
    output: '%RESULT%'
cnaude commented 8 years ago

Try this:

bcdiscord:
    modes: qho
    private: 'false'
    game_command: broadcast &6Join the party on &9&lDISCORD &r&5One-Click Voice Chat &b-=-&6 &3 https://goo.gl/CHgCVE
    extra_commands:
    - 'irc say BOTNAME #CHANNEL &6Join the party on &9&lDISCORD &r&5One-Click Voice Chat &b-=-&6 &3 https://goo.gl/CHgCVE'
    private_listen: 'false'
    ctcp: 'false'
    channel_listen: 'true'
    perm: ''
    sender: CONSOLE
    game_command_usage: ''
    extra_commands: []
    user_masks: []
    output: '%RESULT%'
ghost commented 8 years ago

This does solve the problem, however even a @broadcast from IRC should replay to the irc channels IMO.

Is that somehow possible?

cnaude commented 8 years ago

You can use extra_commands with any custom command. It should work with @broadcast as well.