Skip to content

Commit

Permalink
Alias !cube.rocks and !cube.sucks for their regular commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
robsiemb committed Dec 6, 2024
1 parent 6cf7083 commit 122a99d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zdaemon/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,10 +1025,10 @@ def cubeSlackRouter(message):
# most recent cube thread.
cubeInfo(text, sendResponse, slack_channel=message['channel'])

if (re.search(r"^!cubesucks($|\s)", text)):
if (re.search(r"^!cube\.?sucks($|\s)", text)):
cubeSucksSlack(1, message, sendResponse)

if (re.search(r"^!cuberocks($|\s)", text)):
if (re.search(r"^!cube\.?rocks($|\s)", text)):
cubeSucksSlack(-1, message, sendResponse)

if (re.search(r"^!(slurpcube|cubeslurp)($|\s)", text)):
Expand Down

0 comments on commit 122a99d

Please sign in to comment.