From 7a590c558138a0f176601c8a66a2c860691b683c Mon Sep 17 00:00:00 2001
From: Hemna <waboring@hemna.com>
Date: Mon, 25 Oct 2021 14:48:00 -0400
Subject: [PATCH] Updated command to 'tw' from 't'. Added Help

This patch changes the command name from 't' to 'tw' to
help with conflicts from other plugins.

Also added help
---
 aprsd_twitter_plugin/twitter.py | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/aprsd_twitter_plugin/twitter.py b/aprsd_twitter_plugin/twitter.py
index 652090c..b49b97b 100644
--- a/aprsd_twitter_plugin/twitter.py
+++ b/aprsd_twitter_plugin/twitter.py
@@ -10,13 +10,20 @@ LOG = logging.getLogger("APRSD")
 class SendTweetPlugin(plugin.APRSDRegexCommandPluginBase):
 
     version = "1.0"
-    # Look for any command that starts with w or W
-    command_regex = "^[tT]"
+    # Look for any command that starts with tw or tW or TW or Tw
+    command_regex = "^[tT][wW]"
     # the command is for ?
     command_name = "tweet"
 
     enabled = False
 
+    def help(self):
+        _help = [
+            "twitter: Send a Tweet!!",
+            "twitter: Format 'tw <message>'",
+        ]
+        return _help
+
     def setup(self):
         # Do some checks here?
         self.enabled = True