blob: fb7d22bf282ad3f3342f63dec702d09e5ee707fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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$"))
|