diff options
Diffstat (limited to 'server/src/commands/minigames/8Ball.ts')
| -rw-r--r-- | server/src/commands/minigames/8Ball.ts | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/server/src/commands/minigames/8Ball.ts b/server/src/commands/minigames/8Ball.ts index 2ff3904..10bf06d 100644 --- a/server/src/commands/minigames/8Ball.ts +++ b/server/src/commands/minigames/8Ball.ts @@ -15,12 +15,24 @@ export default class EightBallMinigames extends Command { 'will I ever get married?' ] }, - ratelimit: 3 + ratelimit: 3, + args: [ + { + id: 'darlinginthefranxx', + flag: ['-ditf'], + match: 'flag' + } + ] }); } - public exec(msg: Message): Promise<Message> { - let randomResponse = EightBallResponses.standard[Math.floor(Math.random() * EightBallResponses.standard.length)]; + public exec(msg: Message, { darlinginthefranxx }): Promise<Message> { + let randomResponse; + if (darlinginthefranxx) + randomResponse = EightBallResponses.standard[Math.floor(Math.random() * EightBallResponses.standard.length)]; + else + randomResponse = EightBallResponses.ditf[Math.floor(Math.random() * EightBallResponses.ditf.length)]; + const embed = this.client.util.embed() .setColor(colour) .setAuthor('The 8-ball says', |