From 793049411ab372201d6b114c79ffe9af6edb6b48 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 5 May 2020 12:27:14 -0700 Subject: [PATCH] fix !keyboard2 --- bot.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index 907c21a..1687bc2 100644 --- a/bot.py +++ b/bot.py @@ -181,6 +181,13 @@ def pong(match: Match[str]) -> Response: _TEXT_COMMANDS = ( + # this one has to be first so it does not get overridden by !keyboard + ( + '!keyboard2', + 'this is my second mechanical keyboard: ' + 'https://i.fluffy.cc/CDtRzWX1JZTbqzKswHrZsF7HPX2zfLL1.png', + ), + # the rest of these are sorted by command ( '!discord', 'We do have Discord, you are welcome to join: ' @@ -202,11 +209,6 @@ _TEXT_COMMANDS = ( 'this is my streaming keyboard (contributed by PhillipWei): ' 'https://www.wasdkeyboards.com/code-v3-87-key-mechanical-keyboard-zealio-67g.html', # noqa: E501 ), - ( - '!keyboard2', - 'this is my second mechanical keyboard: ' - 'https://i.fluffy.cc/CDtRzWX1JZTbqzKswHrZsF7HPX2zfLL1.png', - ), ('!levelup', 'https://i.imgur.com/Uoq5vGx.gif'), ('!lurk', 'thanks for lurking, {user}!'), ('!ohai', 'ohai, {user}!'),