From 66080859d71a3f3cdae4e54a487a67870ca814bb Mon Sep 17 00:00:00 2001
From: Someone <someone@somenet.org>
Date: Wed, 8 Dec 2021 19:38:38 +0100
Subject: [PATCH] [somebot] /gwg-roll

---
 modules/CommandGWGRoll.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 modules/CommandGWGRoll.py

diff --git a/modules/CommandGWGRoll.py b/modules/CommandGWGRoll.py
new file mode 100644
index 0000000..2bedf54
--- /dev/null
+++ b/modules/CommandGWGRoll.py
@@ -0,0 +1,19 @@
+# Mattermost Bot module.
+#  Copyright (c) 2016-2021 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
+#  published under MIT-License
+
+import random
+
+
+from AbstractCommand import AbstractCommand
+class CommandGWGRoll(AbstractCommand):
+    TRIGGER = "gwg-roll"
+    CONFIG = {"display_name": "somebot-command", "auto_complete": True,
+              "auto_complete_hint":  "Roll your GWG points!",
+             }
+    USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Roll your GWG points!"
+
+    options = ["Your GWG points: "+str(i/10) for i in range(0, 165, 5)]
+
+    def on_POST(self, request, data):
+        request.cmd_respond_text_chan(random.choice(self.options))
-- 
2.43.0