mirror of
https://github.com/kuhyx/signal-bot.git
synced 2026-07-04 13:23:07 +02:00
Address code review feedback and fix security issues
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
This commit is contained in:
parent
4e260c0551
commit
096a5cb4df
3
.github/workflows/go.yml
vendored
3
.github/workflows/go.yml
vendored
@ -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
|
||||||
|
|||||||
2
main.go
2
main.go
@ -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͓̽"}
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user