Browse Source

Merge branch 'omen' of kirkleon/rollbot4 into master

kirkleon 3 years ago
parent
commit
4c4754c840
2 changed files with 15 additions and 0 deletions
  1. 1 0
      commands/commands/__init__.py
  2. 14 0
      commands/commands/omen.py

+ 1 - 0
commands/commands/__init__.py

@@ -38,6 +38,7 @@ config = get_command_config().extend(
             "cookie": "fortune",
             "wl": "watchlist",
             "choose": "choice",
+            "omens": "omen",
         },
     )
 )

+ 14 - 0
commands/commands/omen.py

@@ -0,0 +1,14 @@
+from logging import Logger
+from rollbot import as_command
+from rollbot.injection.util import Request
+
+from commands.tarot import tarot
+from commands.querying import inspire
+from commands.simple import inquire
+
+@as_command
+async def omen(req: Request, logger: Logger):
+    yield inquire()
+    yield tarot(False, False)
+    yield await inspire(req, logger)
+