From 83435a5707b6b474bf0df45a69f92d4c7544cd89 Mon Sep 17 00:00:00 2001 From: Tom Lebreux Date: Sat, 10 Apr 2021 07:40:05 -0400 Subject: [PATCH] Document !jdb criss --- README.md | 4 ++++ lib/bot.test.js | 2 +- lib/commands.js | 1 + lib/commands.test.js | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 421adb7..4f687c5 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,10 @@ Motivate Julien Gives an help message to the viewers. +**!jdb criss** + +Generates a Quebecer curse sentence if lorembarnak is enabled. + # License See [LICENSE](LICENSE) for all code except for the function diff --git a/lib/bot.test.js b/lib/bot.test.js index c5af6cb..29a1ef9 100644 --- a/lib/bot.test.js +++ b/lib/bot.test.js @@ -296,6 +296,6 @@ describe('commands handler', () => { await client.emit('message', channel, {username: 'user'}, '!jdb help', false) - expect(client.say).toHaveBeenCalledTimes(8) + expect(client.say).toHaveBeenCalledTimes(9) }) }) diff --git a/lib/commands.js b/lib/commands.js index 07df389..1e21239 100644 --- a/lib/commands.js +++ b/lib/commands.js @@ -84,6 +84,7 @@ const commandHelp = async (client, channel) => { await client.say(channel, `motivate Affiche un message de motivation pour Julien`) await client.say(channel, `record Incrémente le nombre de mort de Julien`) await client.say(channel, `total Affiche le compte de mort de Julien depuis qu'il stream`) + await client.say(channel, `criss Affice une phrase composé de sacre Québecois (si activé)`) } // commandRecord records a new death for today's date diff --git a/lib/commands.test.js b/lib/commands.test.js index 6e17d06..a2b34e8 100644 --- a/lib/commands.test.js +++ b/lib/commands.test.js @@ -231,7 +231,7 @@ describe('help command', () => { await commandHelp(client, channel) - expect(client.say).toHaveBeenCalledTimes(8) + expect(client.say).toHaveBeenCalledTimes(9) }) }) -- 2.34.2