From 8c833814ba9ad6d02fc0d272acf7f612d1dd824e Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Mon, 30 Mar 2020 18:02:51 -0700 Subject: [PATCH] Examples: Fixed advanced_bot bug where it immediately removes its own handlers --- bot/ctx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/ctx.go b/bot/ctx.go index 398c8fc..6279a8b 100644 --- a/bot/ctx.go +++ b/bot/ctx.go @@ -117,7 +117,7 @@ func Start(token string, cmd interface{}, } return func() error { - cancel() + defer cancel() return s.Wait() }, nil }