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

[Suggestion] Per User/Group Chat Formatts #52

Closed AaronMcHale closed 10 years ago

AaronMcHale commented 10 years ago

I'll open this with my situation:

We have three servers which we will be setting up with PurpleIRC and Herochat, all of the servers will be connected to the same IRC channels, and we will be using IRC as two things:

  1. To allow players to communicate back and forward between servers in real time and as if they were all on the same server,
  2. To allow players to chat in-game without having to be connected to the server (standard setup).

What we would like to be able to do is have custom "irc-hero-" formats for messages coming from the server bots (as in the IRC user's Server1, Server2, etc), and a default format for all other IRC users.

Is this something that could be added? I feel it could be very useful and extend the existing functionality and usefulness of PurpleIRC.

Thank you Aaron

cnaude commented 10 years ago

When you have a moment try latest dev build https://dl.dropboxusercontent.com/u/30679730/dist/PurpleIRC.jar

You can create a message-format: section in the bot yml now. The syntax is exactly the same as message-format: from the config.yml

cnaude commented 10 years ago

Version 2.1.8 supports per bot message templates.

AaronMcHale commented 10 years ago

Hi sorry for the very late reply, what I'm actually looking for is a way to have default message formats (in the config.yml), then either in the config.yml or bot.yml define separate irc-hero formats per IRC user, so for example the default irc-hero-chat could be "[IRC] %nick%: %message%", and for the IRC user "MC", "Tekkit", and "FTB" (which are broadcasting chat from their respective servers into IRC) the format could be "[%nick%] %message%" (with the %message% containing the player name and their chat message broadcast into IRC)

For our use it would be great if a group could be created in a config called "server-bots", and the above users could be added to that group, then the above formats could also be applied to that group, so instead of having to create duplicate formats for each user we would only have to have them once but apply them to all three users mentioned above.

Sorry if I wasn't clear on that, and again sorry for the late reply, also hopefully you will see this since it's closed.

Thank you Aaron