diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-03-28 19:53:00 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-03-28 19:53:00 -0400 |
| commit | 08aae8cd9e5417bd7451b9af2e3190bf9c6a4e43 (patch) | |
| tree | 965f234d6683b726bddc07ce19914e84b335cd44 /commands/join.js | |
| parent | 0f5a1a252964861e149a0d784a90f0ad74aa09cb (diff) | |
| download | DLAP-08aae8cd9e5417bd7451b9af2e3190bf9c6a4e43.tar.gz DLAP-08aae8cd9e5417bd7451b9af2e3190bf9c6a4e43.tar.bz2 DLAP-08aae8cd9e5417bd7451b9af2e3190bf9c6a4e43.zip | |
Removed old cmd handler; Brought back join; New cmd
Diffstat (limited to 'commands/join.js')
| -rw-r--r-- | commands/join.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/commands/join.js b/commands/join.js new file mode 100644 index 0000000..45f513c --- /dev/null +++ b/commands/join.js @@ -0,0 +1,33 @@ +/************************************************************************** + * + * DLMP3 Bot: A Discord bot that plays local MP3 audio tracks. + * (C) Copyright 2022 + * Programmed by Andrew Lee + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + * + ***************************************************************************/ + +import { SlashCommandBuilder } from '@discordjs/builders' +import { voiceInit } from "../AudioBackend.js"; + +export default { + data: new SlashCommandBuilder() + .setName('join') + .setDescription('Joins voice chat.'), + async execute(interaction, bot) { + await interaction.reply('Joining voice channel') + voiceInit(bot); + }, +};
\ No newline at end of file |
