Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Clov614 committed Aug 2, 2024
1 parent 40649fe commit 485706b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rikkabot/plugins/game/defaultGame.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func init() {
LongDialog: &dialog.LongDialog{},
}
rrPlugin.PluginName = "游戏-俄罗斯轮盘"
rrPlugin.ProcessRules = &control.ProcessRules{IsAtMe: true, IsCallMe: true, CheckWhiteGroup: true,
rrPlugin.ProcessRules = &control.ProcessRules{IsAtMe: true, IsCallMe: true, EnableGroup: true,
ExecOrder: []string{"俄罗斯轮盘", "轮盘游戏", "Russian Roulette"}}
rrPlugin.Long = func(firstMsg message.Message, recvMsg <-chan message.Message, sendMsg chan<- *message.Message) {
if firstMsg.Content == "help" {
Expand Down Expand Up @@ -185,7 +185,7 @@ func (rrp *russianRoulettePlugin) waitChallengerAccept() bool {
<-timer.C
close(done)
}()
_, b, _ := rrp.RecvMessage(&control.ProcessRules{IsAtMe: true, IsCallMe: true, CheckWhiteGroup: true,
_, b, _ := rrp.RecvMessage(&control.ProcessRules{IsAtMe: true, IsCallMe: true, EnableGroup: true,
ExecOrder: []string{"接受", "接受挑战", "accept", "ok", "go", "fine"}, CostomTrigger: func(rikkaMsg message.Message) bool {
return rikkaMsg.SenderName == rrp.Challenger
}}, done)
Expand Down Expand Up @@ -215,7 +215,7 @@ func (rrp *russianRoulettePlugin) doPlayerRound(bullet int, player1 string, play
atText := msgutil.AtSomeOne(player1)
rrp.sendText(atText + "你的回合!(可选择: ’射自己‘ 或 ‘射对手’)")
done := make(chan struct{})
_, b, order := rrp.RecvMessage(&control.ProcessRules{IsAtMe: true, IsCallMe: true, CheckWhiteGroup: true,
_, b, order := rrp.RecvMessage(&control.ProcessRules{IsAtMe: true, IsCallMe: true, EnableGroup: true,
ExecOrder: append(execShotself, execShotOpponent...), CostomTrigger: func(rikkaMsg message.Message) bool {
return rikkaMsg.SenderName == player1
}}, done)
Expand Down

0 comments on commit 485706b

Please sign in to comment.