summaryrefslogtreecommitdiff
path: root/server/src/commands/minigames/8Ball.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-07-25 22:20:49 -0700
committer8cy <[email protected]>2020-07-25 22:20:49 -0700
commitc714f2aaf5918cf57ba4f8815940ac68574665ed (patch)
tree196b294e2059df6dae639297d04f901bc5808326 /server/src/commands/minigames/8Ball.ts
parentchore: 10% faster presence cache clearing to match new presence speed (diff)
downloaddep-core-c714f2aaf5918cf57ba4f8815940ac68574665ed.tar.xz
dep-core-c714f2aaf5918cf57ba4f8815940ac68574665ed.zip
combo: stuff
fix: - fix error handling - fix some gb/wc msgs formatting feat: - ditf 8ball - anti fiji gang - 1/1000 gm/wc
Diffstat (limited to 'server/src/commands/minigames/8Ball.ts')
-rw-r--r--server/src/commands/minigames/8Ball.ts18
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',