1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-05 09:00:24 +08:00
This commit is contained in:
源文雨
2022-06-02 19:33:20 +08:00
parent c1610cd5be
commit 131fd9727c
8 changed files with 98 additions and 36 deletions

View File

@@ -22,7 +22,7 @@ func NewFutureEvent(Type string, Priority int, Block bool, rule ...Rule) *Future
func (m *Matcher) FutureEvent(Type string, rule ...Rule) *FutureEvent {
return &FutureEvent{
Type: Type,
Priority: m.Priority,
Priority: m.priority,
Block: m.Block,
Rule: rule,
}
@@ -36,7 +36,7 @@ func (n *FutureEvent) Next() <-chan *Ctx {
StoreTempMatcher(&Matcher{
Type: n.Type,
Block: n.Block,
Priority: n.Priority,
priority: n.Priority,
Rules: n.Rule,
Engine: defaultEngine,
Process: func(ctx *Ctx) {
@@ -58,7 +58,7 @@ func (n *FutureEvent) Repeat() (recv <-chan *Ctx, cancel func()) {
matcher := StoreMatcher(&Matcher{
Type: n.Type,
Block: n.Block,
Priority: n.Priority,
priority: n.Priority,
Rules: n.Rule,
Engine: defaultEngine,
Process: func(ctx *Ctx) {