From 3c6c4501cf651c843acce4c80ff00192d4091e05 Mon Sep 17 00:00:00 2001 From: Pierre <19956672+iwa@users.noreply.github.com> Date: Sun, 31 May 2020 17:37:20 +0200 Subject: [PATCH 1/3] fix tronky flavours --- src/commands/actions/tronky.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/actions/tronky.ts b/src/commands/actions/tronky.ts index d1c6bb2..11660e2 100644 --- a/src/commands/actions/tronky.ts +++ b/src/commands/actions/tronky.ts @@ -10,10 +10,10 @@ module.exports.run = async (bot: Client, msg: Message, args: string[]) => { // Define and decide the flavour of the tronky. Hazelnut is the default and is used if no or invalid flavour provided. let flavour: string = 'hazelnut' - if ('cocoa' in args) flavour = 'cocoa' - if ('milk' in args) flavour = 'milk' - if ('cereal' in args) flavour = 'cereal' - if ('pistachio' in args) flavour = 'pistacio' + if (args.includes('cocoa')) flavour = 'cocoa' + if (args.includes('milk')) flavour = 'milk' + if (args.includes('cereal')) flavour = 'cereal' + if (args.includes('pistacio')) flavour = 'pistacio' if (msg.mentions.members.has(msg.author.id)) // If mention is person who sent message, send this return msg.channel.send({ "embed": { "title": `:x: > **You can't give yourself a tronky!**`, "color": 13632027 } }); From c6c79a1f75cd9ad35a5c115d8657816ef57ddf67 Mon Sep 17 00:00:00 2001 From: Pierre <19956672+iwa@users.noreply.github.com> Date: Sun, 31 May 2020 17:42:48 +0200 Subject: [PATCH 2/3] update version tag --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8b9af4f..49f7760 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "q-bot", - "version": "1.5.1", + "version": "1.5.2", "description": "Discord Bot for Qumu's Discord Server", "main": "build/index.js", "scripts": { From 15d0df9d554160f2967341e7f5ffc4d9b5abfd9d Mon Sep 17 00:00:00 2001 From: Pierre <19956672+iwa@users.noreply.github.com> Date: Sun, 31 May 2020 17:43:08 +0200 Subject: [PATCH 3/3] update docs --- docs/classes/cooldowns.cooldown.html | 10 +++--- docs/classes/leveling.leveling-1.html | 10 +++--- .../reactionroles.reactionroles-1.html | 10 +++--- docs/classes/staff.staff-1.html | 12 +++---- docs/classes/starboard.starboard-1.html | 10 +++--- docs/classes/utilities.utilities-1.html | 16 ++++----- docs/globals.html | 6 ++-- docs/index.html | 6 ++-- docs/interfaces/actions.stringkeyarray.html | 6 ++-- docs/interfaces/cooldowns.stringkeyarray.html | 6 ++-- docs/modules/actions.html | 34 +++++++++---------- docs/modules/birthdaycheck.html | 12 +++---- docs/modules/boostcolorcheck.html | 8 ++--- docs/modules/cooldowns.html | 10 +++--- docs/modules/highfivewatcher.html | 12 +++---- docs/modules/imgenerator.html | 10 +++--- docs/modules/letmein.html | 8 ++--- docs/modules/leveling.html | 8 ++--- docs/modules/memberleave.html | 12 +++---- docs/modules/music.html | 30 ++++++++-------- docs/modules/profile.html | 6 ++-- docs/modules/reactionroles.html | 10 +++--- docs/modules/readyfunction.html | 12 +++---- docs/modules/staff.html | 6 ++-- docs/modules/starboard.html | 6 ++-- docs/modules/subscount.html | 10 +++--- docs/modules/utilities.html | 12 +++---- 27 files changed, 149 insertions(+), 149 deletions(-) diff --git a/docs/classes/cooldowns.cooldown.html b/docs/classes/cooldowns.cooldown.html index 8efaf62..6bcd5ad 100644 --- a/docs/classes/cooldowns.cooldown.html +++ b/docs/classes/cooldowns.cooldown.html @@ -3,8 +3,8 @@ - cooldown | Q-Bot Docs - v1.5.1 - + cooldown | Q-Bot Docs - v1.5.2 +