Skip to content

Commit 2340873

Browse files
authored
Switch to newer grol; disable read() for discord bot (#135)
1 parent d668b80 commit 2340873

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

bot.go

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ func evalInput(input string, p *CommandParams) string {
307307
state.Extensions[name] = fn
308308
name, fn = SendImageFunction(&st)
309309
state.Extensions[name] = fn
310+
delete(state.Extensions, "read") // remove the read function from the extensions.
310311
}
311312
// Turn smart quotes back into regular quotes - https://github.com/grol-io/grol-discord-bot/issues/57
312313
input = SmartQuotesToRegular(input)

go.mod

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
fortio.org/scli v1.15.3
99
fortio.org/version v1.0.4
1010
github.com/bwmarrin/discordgo v0.28.1
11-
grol.io/grol v0.76.0
11+
grol.io/grol v0.77.0
1212
)
1313

1414
// replace grol.io/grol => ../grol
@@ -20,13 +20,13 @@ require (
2020
fortio.org/struct2env v0.4.1 // indirect
2121
fortio.org/term v0.23.0-fortio-6 // indirect
2222
fortio.org/terminal v0.27.1 // indirect
23-
github.com/fsnotify/fsnotify v1.7.0 // indirect
23+
github.com/fsnotify/fsnotify v1.8.0 // indirect
2424
github.com/gorilla/websocket v1.5.3 // indirect
2525
github.com/kortschak/goroutine v1.1.2 // indirect
2626
github.com/rivo/uniseg v0.4.7 // indirect
27-
golang.org/x/crypto v0.27.0 // indirect
28-
golang.org/x/crypto/x509roots/fallback v0.0.0-20240916204253-42ee18b96377 // indirect
29-
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
27+
golang.org/x/crypto v0.29.0 // indirect
28+
golang.org/x/crypto/x509roots/fallback v0.0.0-20241127184453-8c4e668694cc // indirect
29+
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect
3030
golang.org/x/image v0.22.0 // indirect
3131
golang.org/x/sys v0.27.0 // indirect
3232
)

go.sum

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fortio.org/version v1.0.4 h1:FWUMpJ+hVTNc4RhvvOJzb0xesrlRmG/a+D6bjbQ4+5U=
2222
fortio.org/version v1.0.4/go.mod h1:2JQp9Ax+tm6QKiGuzR5nJY63kFeANcgrZ0osoQFDVm0=
2323
github.com/bwmarrin/discordgo v0.28.1 h1:gXsuo2GBO7NbR6uqmrrBDplPUx2T3nzu775q/Rd1aG4=
2424
github.com/bwmarrin/discordgo v0.28.1/go.mod h1:NJZpH+1AfhIcyQsPeuBKsUtYrRnjkyu0kIVMCHkZtRY=
25-
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
26-
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
25+
github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M=
26+
github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
2727
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
2828
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
2929
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
@@ -32,12 +32,12 @@ github.com/kortschak/goroutine v1.1.2/go.mod h1:zKpXs1FWN/6mXasDQzfl7g0LrGFIOiA6
3232
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
3333
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
3434
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
35-
golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A=
36-
golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70=
37-
golang.org/x/crypto/x509roots/fallback v0.0.0-20240916204253-42ee18b96377 h1:aDWu69N3Si4isYMY1ppnuoGEFypX/E5l4MWA//GPClw=
38-
golang.org/x/crypto/x509roots/fallback v0.0.0-20240916204253-42ee18b96377/go.mod h1:kNa9WdvYnzFwC79zRpLRMJbdEFlhyM5RPFBBZp/wWH8=
39-
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk=
40-
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY=
35+
golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ=
36+
golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg=
37+
golang.org/x/crypto/x509roots/fallback v0.0.0-20241127184453-8c4e668694cc h1:N2DXFnxni8U4KZ7CcK6kicRat3uowReUjOJxwYTxQv8=
38+
golang.org/x/crypto/x509roots/fallback v0.0.0-20241127184453-8c4e668694cc/go.mod h1:kNa9WdvYnzFwC79zRpLRMJbdEFlhyM5RPFBBZp/wWH8=
39+
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f h1:XdNn9LlyWAhLVp6P/i8QYBW+hlyhrhei9uErw2B5GJo=
40+
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f/go.mod h1:D5SMRVC3C2/4+F/DB1wZsLRnSNimn2Sp/NPsCrsv8ak=
4141
golang.org/x/image v0.22.0 h1:UtK5yLUzilVrkjMAZAZ34DXGpASN8i8pj8g+O+yd10g=
4242
golang.org/x/image v0.22.0/go.mod h1:9hPFhljd4zZ1GNSIZJ49sqbp45GKK9t6w+iXvGqZUz4=
4343
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
@@ -47,5 +47,5 @@ golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
4747
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
4848
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
4949
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
50-
grol.io/grol v0.76.0 h1:xV/cIU/Rw5PX3Q7R4DFK05NFCoauNUaSZ72a2dh66PU=
51-
grol.io/grol v0.76.0/go.mod h1:JGGr5HJ2O8ytuL1HzfiOTFv/k3ek0dqAj4NMP8wQ+K4=
50+
grol.io/grol v0.77.0 h1:JD4sObRxoItT31HidWKjEaNDg5B07NqVJlAfKzp6i6Q=
51+
grol.io/grol v0.77.0/go.mod h1:JGGr5HJ2O8ytuL1HzfiOTFv/k3ek0dqAj4NMP8wQ+K4=

0 commit comments

Comments
 (0)