1
1
Fork
You've already forked minecraft-irc-wrapper
0
janky scheme script to relay minecraft chat with irc
  • Scheme 100%
2026年06月12日 17:20:17 +01:00
.gitignore initial commit 2026年03月03日 21:48:35 +00:00
config.scm use RELAYMSG instead of roleplay (optionally) 2026年06月12日 17:20:17 +01:00
README tweak readme 2026年03月03日 21:56:36 +00:00
wrapper.scm use RELAYMSG instead of roleplay (optionally) 2026年06月12日 17:20:17 +01:00

this is a very scrappy thrown-together chicken scheme script, which runs a
minecraft server as a subprocess and simultaneously connects to an IRC channel,
and then relays chat messages between the two (and also join/part messages, and
CTCP ACTIONs (/me), and it also allows specified users to send commands from
IRC).
dependencies: chicken 5, "irc" egg, "srfi-18" egg.
the default "config.scm" is very very specific to our personal use-case, but it
should be relatively easy to adapt it for your own situation. in particular,
you'll want to change the irc-admins, irc-conn and irc-channel, and unless
you're running an old version of minecraft, you'll also need to customise the
log parsing regexes, since the log format has changed in later versions (the
current one is tested on vanilla 1.6.4).
messages are relayed into IRC using roleplay commands (NPC and NPCA). so, make
sure the bot has permission to use these, maybe you need to set +E on the
channel, etc. (or you could edit the code to not use those commands, or to use
IRCv3's RELAYMSG, etc.)
also, because we're running this on an old server - it uses the "say" command
instead of "tellraw" because tellraw didn't exist yet. you may want to edit the
script itself ("wrapper.scm") to use tellraw to produce nicer messages?
the IRC bot accepts a small set of admin commands from the user(s) listed in
irc-admins config option:
 - `!!set-verbose` enables relaying all log output to irc (config option
 "verbose-log-relay?")
 - `!!unset-verbose` disables it
 - `!!/<command>` sends a command to the minecraft server (e.g. !!/stop)