diff --git a/modules/proverbio/mod.go b/modules/proverbio/mod.go index ac2bfe0..becc147 100644 --- a/modules/proverbio/mod.go +++ b/modules/proverbio/mod.go @@ -51,7 +51,7 @@ func (m *Module) OnUpdate(update tg.APIUpdate) { return } - if utils.IsCommand(*update.Message, m.name, "metafora") { + if utils.IsCommand(*update.Message, m.name, "proverbio") { start := rand.Intn(len(proverbipairs.start)) end := rand.Intn(len(proverbipairs.end)) m.client.SendTextMessage(tg.ClientTextMessageData{ diff --git a/utils/command.go b/utils/command.go index 866fb1b..1c18521 100644 --- a/utils/command.go +++ b/utils/command.go @@ -22,7 +22,7 @@ func IsCommand(update tg.APIMessage, botname string, cmdname string) bool { } // Check long form - if text == shortcmd || strings.HasPrefix(text, fullcmd+" ") { + if text == fullcmd || strings.HasPrefix(text, fullcmd+" ") { return true }