diff options
| author | 8cy <[email protected]> | 2020-04-18 04:49:52 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-18 04:49:52 -0700 |
| commit | 7391135125ee1c9abcb142bc00f8d7b0df140254 (patch) | |
| tree | e50434b4e8c67a5408841d65c48cf208bcde4a13 /src | |
| parent | update node packages (diff) | |
| download | dep-core-7391135125ee1c9abcb142bc00f8d7b0df140254.tar.xz dep-core-7391135125ee1c9abcb142bc00f8d7b0df140254.zip | |
change case in 8ball + add coinflip, v7.1.2
Diffstat (limited to 'src')
| -rw-r--r-- | src/bot.ts | 2 | ||||
| -rw-r--r-- | src/commands/fun/8ball.ts | 2 | ||||
| -rw-r--r-- | src/commands/fun/coinflip.ts | 31 |
3 files changed, 33 insertions, 2 deletions
@@ -62,7 +62,7 @@ client.once('ready', () => { console.log('\x1b[0m' + 'Servers: ' + '\x1b[36m' + `${client.guilds.cache.size}` + '\x1b[0m') console.log() - client.user.setActivity('uwu!help | v7.1.1', { + client.user.setActivity('uwu!help | v7.1.2', { type: 'WATCHING' }); }); diff --git a/src/commands/fun/8ball.ts b/src/commands/fun/8ball.ts index faf7adf..2ba8fc4 100644 --- a/src/commands/fun/8ball.ts +++ b/src/commands/fun/8ball.ts @@ -25,7 +25,7 @@ module.exports = class EightBallFun extends Command { }); } run(msg: CommandoMessage) { - var r = ['Yes~ uwu', 'No.', 'Yes!', 'No!', 'What, no.', 'Yes.', 'Maybe.', 'Perhaps.', 'Try again.', 'I\'m not sure.']; + var r = ['yes~ uwu', 'no.', 'yes!', 'no!', 'what, no.', 'yes.', 'maybe.', 'perhaps.', 'try again.', 'I\'m not sure.']; var s = r[Math.floor(Math.random() * r.length)]; let embed = new MessageEmbed() diff --git a/src/commands/fun/coinflip.ts b/src/commands/fun/coinflip.ts new file mode 100644 index 0000000..e2c39bc --- /dev/null +++ b/src/commands/fun/coinflip.ts @@ -0,0 +1,31 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import { MessageEmbed } from 'discord.js'; + +module.exports = class CoinFlipFun extends Command { + constructor(client) { + super(client, { + name: 'coinflip', + aliases: ['flipcoin'], + group: 'fun', + memberName: 'coinflip', + description: 'Flip a coin.', + throttling: { + usages: 5, + duration: 30 + }, + examples: ['uwu!coinflip', 'uwu!flipcoin'], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + run(msg: CommandoMessage) { + var r = ['heads!', 'tails!']; + var s = r[Math.floor(Math.random() * r.length)]; + let embed = new MessageEmbed() + + .setAuthor('It\'s', 'https://upload.wikimedia.org/wikipedia/commons/3/33/Circle-icons-coin.svg') + .setDescription('`' + s + '`'); + + msg.channel.send(embed); + } +};
\ No newline at end of file |