fix save and eco/stats storage

This commit is contained in:
shoopea
2021-12-05 15:54:46 +08:00
parent 565c7101d8
commit e043820273
3 changed files with 35 additions and 41 deletions

2
bot.go
View File

@@ -521,7 +521,7 @@ func botSave(m *tb.Message) {
return
}
r := regexp.MustCompile("^\\/save @(?P<Filename>[a-zA-Z0-9._]+)")
r := regexp.MustCompile("^\\/save (?P<Filename>[a-zA-Z0-9._]+)")
if !r.MatchString(m.Text) {
bot.SendChat(m.Chat.ID, "Wrong usage.")