From a428d39fffec2163a0adae61a3710d9d1a9e879f Mon Sep 17 00:00:00 2001 From: David Haukeness Date: Tue, 31 Mar 2020 20:30:20 +0000 Subject: [PATCH] added bot.cmd() function to reliably return configured cmd --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 33098cb..260f6f8 100644 --- a/main.go +++ b/main.go @@ -20,6 +20,11 @@ type bot struct { config botConfig } +// this allows you to change the command the bot listens to (in additon to its username) +func (b *bot) cmd() string { + return "jitsi" +} + // botConfig hold env and cli flags and options // fields must be exported for package env (reflect) to work type botConfig struct {