From 1c579353badf4ee781a95c63729dff483a9cb999 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Sat, 15 Oct 2016 00:20:52 +0100 Subject: [PATCH] Try !-prefixed commands --- handlers/quotedb/handlers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/quotedb/handlers.go b/handlers/quotedb/handlers.go index 3c103a8..194b000 100644 --- a/handlers/quotedb/handlers.go +++ b/handlers/quotedb/handlers.go @@ -35,7 +35,7 @@ type QuoteHandler struct { } func (h *AddQuoteHandler) Describe() (string, string) { - return "addquote", "Add a quote to the database" + return "!addquote", "Add a quote to the database" } func (h *AddQuoteHandler) Command(ctx context.Context, w hugot.ResponseWriter, m *hugot.Message) error { @@ -55,7 +55,7 @@ func (h *AddQuoteHandler) Command(ctx context.Context, w hugot.ResponseWriter, m } func (h *LastQuoteHandler) Describe() (string, string) { - return "lastquote", "Show the last-added quote" + return "!lastquote", "Show the last-added quote" } func (h *LastQuoteHandler) Command(ctx context.Context, w hugot.ResponseWriter, m *hugot.Message) error { @@ -70,7 +70,7 @@ func (h *LastQuoteHandler) Command(ctx context.Context, w hugot.ResponseWriter, } func (h *FindQuoteHandler) Describe() (string, string) { - return "findquote", "Search for a quote by substring" + return "!findquote", "Search for a quote by substring" } func (h *FindQuoteHandler) find(channel, term string) string { @@ -128,7 +128,7 @@ func (h *FindQuoteHandler) Command(ctx context.Context, w hugot.ResponseWriter, } func (h *RandQuoteHandler) Describe() (string, string) { - return "randquote", "Show a random quote" + return "!randquote", "Show a random quote" } func (h *RandQuoteHandler) Command(ctx context.Context, w hugot.ResponseWriter, m *hugot.Message) error {