Revert "Try !-prefixed commands"

This reverts commit 1c579353ba.
This commit is contained in:
2016-10-15 01:07:25 +01:00
parent 1c579353ba
commit 3d15092e79

View File

@@ -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 {