summaryrefslogtreecommitdiff
path: root/src/commands/voice/loop.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-07-23 23:24:17 -0700
committer8cy <[email protected]>2020-07-23 23:24:17 -0700
commitbb511abc03bb66848947e37a999502b813c77269 (patch)
tree612c010fc8317e1cdf11471a18aad0270819d33e /src/commands/voice/loop.ts
parentfix: if clear amount equal or over 100, round down to 99 (diff)
downloaddep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz
dep-core-bb511abc03bb66848947e37a999502b813c77269.zip
goodbye old uwufier :cry:
Diffstat (limited to 'src/commands/voice/loop.ts')
-rw-r--r--src/commands/voice/loop.ts40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/commands/voice/loop.ts b/src/commands/voice/loop.ts
deleted file mode 100644
index a12c4e8..0000000
--- a/src/commands/voice/loop.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
-//@ts-ignore
-import emoji from 'emoji-random';
-
-module.exports = class LoopVoice extends Command {
- constructor(client: CommandoClient) {
- super(client, {
- name: 'loop',
- aliases: ['repeat'],
- group: 'voice',
- memberName: 'loop',
- description: 'Loops currently playing track.',
- guildOnly: true,
- examples: ['uwu!loop', 'uwu!repeat'],
- clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- throttling: {
- usages: 5,
- duration: 30
- },
- });
- }
- //@ts-ignore
- run(msg: CommandoMessage) {
- var voiceChannel = msg.member.voice.channel;
- if (!voiceChannel) return msg.reply('Please join a channel and try again. ' + emoji.random());
-
- //@ts-ignore
- if (typeof msg.guild.musicData.songDispatcher == 'undefined' ||
- //@ts-ignore
- msg.guild.musicData.songDispatcher == null) {
- return msg.reply('There isn\'t any audio playing right now. ' + emoji.random());
- }
- //@ts-ignore
- msg.say(`${msg.guild.musicData.nowPlaying.title} added to queue. ` + emoji.random());
- //@ts-ignore
- msg.guild.musicData.queue.unshift(msg.guild.musicData.nowPlaying);
- return;
- }
-}; \ No newline at end of file