~tomleb/juliendeathbot

83435a5707b6b474bf0df45a69f92d4c7544cd89 — Tom Lebreux 2 years ago 2bbb281 master
Document !jdb criss
4 files changed, 7 insertions(+), 2 deletions(-)

M README.md
M lib/bot.test.js
M lib/commands.js
M lib/commands.test.js
M README.md => README.md +4 -0
@@ 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

M lib/bot.test.js => lib/bot.test.js +1 -1
@@ 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)
    })
})

M lib/commands.js => lib/commands.js +1 -0
@@ 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

M lib/commands.test.js => lib/commands.test.js +1 -1
@@ 231,7 231,7 @@ describe('help command', () => {

        await commandHelp(client, channel)

        expect(client.say).toHaveBeenCalledTimes(8)
        expect(client.say).toHaveBeenCalledTimes(9)
    })
})