Address code review feedback and fix security issues

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-12-01 15:19:29 +00:00
parent 4e260c0551
commit 096a5cb4df
3 changed files with 9 additions and 1 deletions

View File

@ -6,6 +6,9 @@ on:
pull_request: pull_request:
branches: [ "main" ] branches: [ "main" ]
permissions:
contents: read
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -162,6 +162,8 @@ type SendMessageRequest struct {
} }
// Command triggers // Command triggers
// These include various Unicode variants for compatibility with different input methods
// and to match the original Python implementation's command variations
var catCommands = []string{"!kot", "!koty", "!kots", "!cat", "!cats", "!meow", "!miau", "!ᴋᴏᴛ", "!𝓴𝓸𝓽", "!𝗸𝗼𝘁"} var catCommands = []string{"!kot", "!koty", "!kots", "!cat", "!cats", "!meow", "!miau", "!ᴋᴏᴛ", "!𝓴𝓸𝓽", "!𝗸𝗼𝘁"}
var dogCommands = []string{"!pies", "!psy", "!dog", "!dogs", "!woof", "!szczek", "!𝗽𝗶𝗲𝘀", "!͓̽p͓̽i͓̽e͓̽s͓̽"} var dogCommands = []string{"!pies", "!psy", "!dog", "!dogs", "!woof", "!szczek", "!𝗽𝗶𝗲𝘀", "!͓̽p͓̽i͓̽e͓̽s͓̽"}

View File

@ -2,7 +2,10 @@
# Build and run the Go version of Signal Bot # Build and run the Go version of Signal Bot
# First, build the application # First, build the application
go build -o signal-bot main.go if ! go build -o signal-bot main.go; then
echo "Build failed"
exit 1
fi
# Run the application # Run the application
./signal-bot ./signal-bot