mirror of
https://github.com/gizmo4487/O-Bot.git
synced 2026-07-14 08:35:55 -05:00
Complete rewrite - Added slash commands
This commit is contained in:
11
cmd/voice/radio.js
Normal file
11
cmd/voice/radio.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const vcutil = require('../util/vc.js');
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('radio')
|
||||
.setDescription('Play 24/7 SiIvaGunner music in a voice channel'),
|
||||
async execute(interaction) {
|
||||
const response = await vcutil.play(interaction, 'http://localhost:8000/live');
|
||||
await interaction.reply(response);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user