aboutsummaryrefslogtreecommitdiff
path: root/config.scm
diff options
context:
space:
mode:
authorwinter Sparkles2026-03-03 21:48:35 +0000
committerwinter Sparkles2026-03-03 21:48:35 +0000
commite599a90ef1249a8eb375180224c9f08d32512d7b (patch)
tree5c35abc56ee359352dbedd4d703e2ae94108355a /config.scm
initial commit
Diffstat (limited to 'config.scm')
-rw-r--r--config.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/config.scm b/config.scm
new file mode 100644
index 0000000..fb7d22b
--- /dev/null
+++ b/config.scm
@@ -0,0 +1,39 @@
+;; what to forward to stderr
+(define emit-minecraft-log? #f)
+(define emit-irc-trace? #f)
+
+;; minecraft server
+(define server-dir "srv")
+(define server-command
+ '("java"
+ "-Dminecraft.api.session.host=https://auth.fnordmc.xyz/session"
+ "-Djava.protocol.handler.pkgs=gg.codie.mineonline.protocol"
+ "-cp" "server.jar:OnlineModeFix.jar"
+ "net.minecraft.server.MinecraftServer"
+ "--nogui"))
+
+;; irc server
+(define irc-conn (irc:connection #:server "celestine"
+ #:nick "MC"
+ #:reconnect #t))
+;; the channel needs to allow roleplay commands (i.e. mode +E)
+;; because i'm using them to spoof ingame nicks
+(define irc-channel "#minecraft")
+;; nicks allowed to use admin commands
+(define irc-admins '("winter"))
+
+;; whether to spam irc with all minecraft output
+(define verbose-log-relay? #f)
+
+;;; the following will need to be adjusted depending on the log format of the
+;;; specific minecraft version you're running
+
+(define timestamp-format "%Y-%m-%d %H:%M:%S")
+;; first capture group is the log level, second is the line content
+(define log-line-format (irregex "\\[([A-Z]+)\\] ?(.*)$"))
+;; first capture group is the username, second is the message content
+(define chat-message-format (irregex "^<([^>]+)> (.*)$"))
+(define chat-action-format (irregex "^\\* ([^ ]+) (.*)$"))
+;; first capture group is the username
+(define player-join-format (irregex "^([^ ]+) joined the game$"))
+(define player-part-format (irregex "^([^ ]+) left the game$"))