Преглед изворни кода

Fix !help <command>

tags/v0.1^2
Ben Kurtovic пре 12 година
родитељ
комит
b2a3cedd9f
1 измењених фајлова са 2 додато и 1 уклоњено
  1. +2
    -1
      earwigbot/commands/help.py

+ 2
- 1
earwigbot/commands/help.py Прегледај датотеку

@@ -58,7 +58,8 @@ class Command(BaseCommand):

# Create a dummy message to test which commands pick up the user's
# input:
dummy = Data(":foo!bar@example.com PRIVMSG #channel :msg!".split())
msg = ":foo!bar@example.com PRIVMSG #channel :msg".split()
dummy = Data(self.bot, msg)
dummy.command = command.lower()
dummy.is_command = True



Loading…
Откажи
Сачувај