small pixel drawing of a pufferfish neoarkbot

Allow for old style commands
j3s j3s@c3f.net
Wed, 17 Mar 2021 16:36:23 -0500
commit

042ef9483396c3147e111c93747a582ac891c4ee

parent

fe7770198f0c77edb577366250e91ef99628a125

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M main.gomain.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()