CraftIRC
A simple IRC-game relay plugin, now for Sponge.
Commands
/craftirc
- Outputs version info
/craftirc reload
- Reloads the config, reconnects all bots. Requires permission.
Permissions
craftirc.reload
- Ability to use the reload command
Setup
By default a config file is created at craftirc/config.yml
Here is that file
bots:
- host: localhost
name: MyInternalBotName
nick: CraftIRC
debug-output:
exceptions: false
input: false
output: false
endpoints:
- name: Chat
type: mc-chat
- name: Join
type: mc-join
- name: Quit
type: mc-quit
- name: IRC
type: irc
extra:
bot: MyInternalBotName
channel: "#craftirc"
links:
- source: Chat
target: IRC
filters:
- colorize
- source: IRC
target: Chat
filters:
- colorize
- type: datamapper
message: "[IRC] <%IRC_PREFIX%%SENDER_NAME%> %MESSAGE_TEXT%"
- source: Join
target: IRC
- source: Quit
target: IRC
repeatable-filters:
colorize:
type: color
In this example, a bot is established, connecting to localhost with the nickname CraftIRC. Two endpoints are established, one defining the game, one defining an IRC channel. Then, we link the two together with links.
Each link can have filters on it to establish how chat is formatted on the receiving end.