修改bot默认的mode为Normal
This commit is contained in:
parent
d193cbd641
commit
c529afa168
2
bot.go
2
bot.go
@ -368,7 +368,7 @@ func (b *Bot) OnLogout(f func(bot *Bot)) {
|
|||||||
func NewBot() *Bot {
|
func NewBot() *Bot {
|
||||||
caller := DefaultCaller()
|
caller := DefaultCaller()
|
||||||
// 默认行为为桌面模式
|
// 默认行为为桌面模式
|
||||||
caller.Client.SetMode(Desktop)
|
caller.Client.SetMode(Normal)
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
return &Bot{Caller: caller, Storage: &Storage{}, context: ctx, cancel: cancel}
|
return &Bot{Caller: caller, Storage: &Storage{}, context: ctx, cancel: cancel}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user