restart fix + slack commands
This commit is contained in:
1 parent
e90c9f324b
commit
25fcf85855
22 files changed
+1077
-119
No files matched your search
@@ -5,7 +5,6 @@ import (
|
||||
"flag"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"slackerbot/internal/acp"
|
||||
@@ -47,8 +46,8 @@ type Calls struct {
|
||||
}
|
||||
|
||||
func isSendFile(u acp.Update) bool {
|
||||
return u.ToolName == ServerName+"__"+SendFile ||
|
||||
strings.HasPrefix(u.Title, ServerName+": "+strings.ReplaceAll(SendFile, "_", " "))
|
||||
name, ok := toolName(u)
|
||||
return ok && name == SendFile
|
||||
}
|
||||
|
||||
func (c *Calls) Update(u acp.Update) {
|
||||
|
||||
Reference in new issue
Block a user