mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-09-04 23:26:39 +08:00
chore: go fix codebase
This commit is contained in:
@@ -64,7 +64,7 @@ func handleWatchCmd(ctx *ext.Context, update *ext.Update) error {
|
|||||||
filter := ""
|
filter := ""
|
||||||
if len(args) > 2 {
|
if len(args) > 2 {
|
||||||
filterArg := strings.Join(args[2:], " ")
|
filterArg := strings.Join(args[2:], " ")
|
||||||
filterType := strings.Split(filterArg, ":")[0]
|
filterType, _, _ := strings.Cut(filterArg, ":")
|
||||||
filterData := strings.Split(filterArg, ":")[1]
|
filterData := strings.Split(filterArg, ":")[1]
|
||||||
if filterType == "" || filterData == "" {
|
if filterType == "" || filterData == "" {
|
||||||
ctx.Reply(update, ext.ReplyTextString(i18n.T(i18nk.BotMsgWatchErrorFilterFormatInvalid)), nil)
|
ctx.Reply(update, ext.ReplyTextString(i18n.T(i18nk.BotMsgWatchErrorFilterFormatInvalid)), nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user