comparison socket/conn.go @ 11:6d91c612310a

add some permissions
author Dennis C. M. <dennis@denniscm.com>
date Sat, 15 Mar 2025 17:08:03 +0000
parents 5c124578fed2
children aaf85ae1f942
comparison
equal deleted inserted replaced
10:5c124578fed2 11:6d91c612310a
115 } 115 }
116 116
117 chatMsg := resNotifChannelChatMsg.Payload.Event.Msg.Text 117 chatMsg := resNotifChannelChatMsg.Payload.Event.Msg.Text
118 118
119 if strings.HasPrefix(chatMsg, "!") { 119 if strings.HasPrefix(chatMsg, "!") {
120 go bot.HandleCmd(strings.Split(chatMsg[1:], " ")) 120 if resNotifChannelChatMsg.Payload.Event.ChatterUserName == "denniscmartin" {
121 go bot.HandleCmd(strings.Split(chatMsg[1:], " "))
122 }
121 } 123 }
122 } 124 }
123 default: 125 default:
124 log.Fatalf("socket: %s message type not implemented", msgType) 126 log.Fatalf("socket: %s message type not implemented", msgType)
125 } 127 }