Skip to content

Commit

Permalink
Nice moon
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed Jan 8, 2025
1 parent 06a3e62 commit b9d91a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ tmp_dir = "tmp"

[build]
args_bin = []
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ."
bin = "./tmp/annie"
cmd = "pkill annie; go build -o ./tmp/annie ."
delay = 0
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
exclude_file = []
Expand Down
7 changes: 6 additions & 1 deletion handlers/pom.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ func POM(params bot.HandlerParams) error {
return err
}

params.Privmsgf(params.Target, "%s", out.String())
str := out.String()
if strings.Contains(str, "69") {
str = str + " (nice)"
}

params.Privmsgf(params.Target, "%s", str)

return nil
}

0 comments on commit b9d91a8

Please sign in to comment.