changeset 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
files socket/conn.go
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/socket/conn.go	Sat Mar 15 17:03:53 2025 +0000
+++ b/socket/conn.go	Sat Mar 15 17:08:03 2025 +0000
@@ -117,7 +117,9 @@
 				chatMsg := resNotifChannelChatMsg.Payload.Event.Msg.Text
 
 				if strings.HasPrefix(chatMsg, "!") {
-					go bot.HandleCmd(strings.Split(chatMsg[1:], " "))
+					if resNotifChannelChatMsg.Payload.Event.ChatterUserName == "denniscmartin" {
+						go bot.HandleCmd(strings.Split(chatMsg[1:], " "))
+					}
 				}
 			}
 		default: