This is a discussion topic for the Ore project, CraftIRC. View the full project on Ore for downloads and more information.
A simple IRC-game relay plugin, now for Sponge.
/craftirc - Outputs version info
/craftirc reload - Reloads the config, reconnects all bots. Requires permission.
craftirc.reload - Ability to use the reload command
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.