refactor: rename cmds -> hostcmds

This commit is contained in:
Yiyang Kang 2023-03-20 15:08:02 +08:00
parent bd5e8112a1
commit fbe9c3d004
2 changed files with 4 additions and 4 deletions

6
bot.go
View File

@ -11,7 +11,7 @@ import (
"github.com/go-errors/errors"
tele "gopkg.in/telebot.v3"
"git.gensokyo.cafe/kkyy/tgbot_misaka_5882f7/cmds"
"git.gensokyo.cafe/kkyy/tgbot_misaka_5882f7/hostcmds"
)
func isFromAdmin(sender *tele.User) bool {
@ -204,7 +204,7 @@ func handleDigCmd(c tele.Context) error {
return nil
}
req, err := cmds.NewDigRequest(msg.Payload)
req, err := hostcmds.NewDigRequest(msg.Payload)
if err != nil {
return c.Reply(
"Invalid arguments.\nUsage: `/dig <name> [type]`",
@ -213,7 +213,7 @@ func handleDigCmd(c tele.Context) error {
)
}
resp, err := cmds.Dig(req)
resp, err := hostcmds.Dig(req)
if err != nil {
_ = c.Reply(stickerFromID(stickerPanic), tele.Silent)
return err

View File

@ -1,4 +1,4 @@
package cmds
package hostcmds
import (
"bufio"