From 98ccc962ea046dd6f4b63cef9e7748c32c1c6272 Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 28 May 2021 18:16:44 +0100 Subject: [PATCH] fix nil map --- features/handlers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/handlers.go b/features/handlers.go index 02c985e..8b211de 100644 --- a/features/handlers.go +++ b/features/handlers.go @@ -21,6 +21,8 @@ func (f *Features) RegisterCommand(name string, description string, adminonly bo } func (f *Features) RegisterHandlers() { + f.ScuzzyCommands = make(map[string]ScuzzyCommand) + // Misc Commands f.RegisterCommand("help", "Show Help Text", false, f.handleHelp) f.RegisterCommand("info", "Show Bot Info", false, f.handleInfo)