Kirk Trombley il y a 6 ans
Parent
commit
64d4f823e6
3 fichiers modifiés avec 13 ajouts et 1 suppressions
  1. 4 0
      TODO_commands
  2. 1 1
      config/config.toml
  3. 8 0
      src/plugins/teamspeak.py

+ 4 - 0
TODO_commands

@@ -6,3 +6,7 @@ digest
 new:
 reminders
 spoiler jar
+curse
+
+other:
+aliasing system

+ 1 - 1
config/config.toml

@@ -2,7 +2,7 @@ database = "/tmp/rollbot.sqlite"
 
 [plugins]
 simple = [ "info", "isadmin", "debug", "echo", "thanks", "guess", "meme", "unmeme", "greet", "console" ]
-teamspeak = [ "teamspeak" ]
+teamspeak = [ "teamspeak", "speamteek", ]
 session = [ "session" ]
 roll = [ "roll" ]
 querying = [ "inspire", "shield", "scp", "riddle" ]

+ 8 - 0
src/plugins/teamspeak.py

@@ -50,3 +50,11 @@ class teamspeak(RollbotPlugin):
         if len(nicks) == 1:
             return RollbotResponse(message, txt="Only "+nicks[0])
         return RollbotResponse(message, txt="I see the following people: "+", ".join(nicks))
+
+
+class speamteek(teamspeak):
+    def on_command(self, db, message):
+        r = super().on_command(db, message)
+        if r.is_success:
+            r.txt = r.txt[::-1]
+        return r