修改bot默认的mode为Normal

This commit is contained in:
eatmoreapple 2021-12-31 12:55:46 +08:00
parent d193cbd641
commit c529afa168
2 changed files with 5 additions and 2 deletions

2
bot.go
View File

@ -368,7 +368,7 @@ func (b *Bot) OnLogout(f func(bot *Bot)) {
func NewBot() *Bot {
caller := DefaultCaller()
// 默认行为为桌面模式
caller.Client.SetMode(Desktop)
caller.Client.SetMode(Normal)
ctx, cancel := context.WithCancel(context.Background())
return &Bot{Caller: caller, Storage: &Storage{}, context: ctx, cancel: cancel}
}

View File

@ -13,7 +13,10 @@ type Mode interface {
}
var (
Normal Mode = normalMode{}
Normal Mode = normalMode{}
// Desktop
// Deprecated
Desktop Mode = desktopMode{}
)