Skip to content

Commit

Permalink
Do not react to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolg committed May 4, 2022
1 parent 63c82fe commit d59a50f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ func main() {
updates := bot.GetUpdatesChan(u)

for update := range updates {
if update.Message != nil { // If we got a message
if update.Message.IsCommand() {
continue
}
if update.Message != nil {
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
reply(update, bot, "working on it")

servers := findServers(update.Message.Text)
if len(servers) == 0 {
Expand Down

0 comments on commit d59a50f

Please sign in to comment.