Compare commits

..

No commits in common. "2f4fd889b3a986ffede52bc3cbaedc215a315305" and "5c3080e2897e432cbc26ce1ad6022c085f25e943" have entirely different histories.

3 changed files with 5 additions and 13 deletions

View File

@ -15,7 +15,7 @@ import settings
class HebdoBot(IrcBot): class HebdoBot(IrcBot):
def __init__(self, settings): def __init__(self, settings):
super().__init__(settings) super().__init__(settings)
self.VERSION = "3.1.0" self.VERSION = "3.0.0"
self.review = Review() self.review = Review()
for event in events: for event in events:
@ -65,7 +65,7 @@ class HebdoBot(IrcBot):
""" """
channel = event.target channel = event.target
sender = event.source.nick sender = event.source.nick
message = event.arguments[0].strip() message = event.arguments[0]
if self.review.is_started: if self.review.is_started:
self.review.add_message(sender, message) self.review.add_message(sender, message)

View File

@ -30,9 +30,9 @@ class Help:
" !fin : terminer la revue en cours", " !fin : terminer la revue en cours",
" !stop  : abandonner la revue en cours", " !stop  : abandonner la revue en cours",
" ", " ",
"Autres commandes : !anniv, !bonjour, !chrono, !complet, !date, " "Autres commandes : !anniv, !bonjour, !chrono, !date, !hello, "
"!hello, !licence, !manquantes, !merci, !record, !salut, !stats, " "!licence, !manquantes, !merci, !record, !salut, !stats, !status, "
"!status, !version", "!version",
), ),
) )

View File

@ -10,11 +10,3 @@ def test_private_command(bot):
bot.test_private_message(bot.channel, SENDER, "!hello") bot.test_private_message(bot.channel, SENDER, "!hello")
assert len(bot.answers) == 1 assert len(bot.answers) == 1
assert bot.answers[0].message == "Vos commandes dans le salon public" assert bot.answers[0].message == "Vos commandes dans le salon public"
def test_public_message(bot):
# Cheating here to save message sent
bot.review.started = True
bot.test_public_message(bot.channel, SENDER, " hello ")
assert len(bot.answers) == 0
assert bot.review.messages[0].text == "hello"