Allow for old style commands
j3s j3s@c3f.net
Wed, 17 Mar 2021 16:36:23 -0500
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
main.go
→
main.go
@@ -41,6 +41,12 @@ TextMessage: func(e *gumble.TextMessageEvent) {
if e.Sender == nil { return } + // old commands started with # + if strings.HasPrefix(e.Message, "#") { + fmt.Println("old detected") + // shittily trim the string + e.Message = e.Message[1:] + } if e.Message == "stop" { fmt.Println("stopping") stream.Stop()