Added Basic Discord Connectivity

This commit is contained in:
DeSqBlocki
2025-02-08 16:47:07 +01:00
parent 8292db72e3
commit bd782b0567
14 changed files with 511 additions and 333 deletions
+23
View File
@@ -0,0 +1,23 @@
const { SlashCommandBuilder, Events } = require('discord.js')
module.exports = {
data: new SlashCommandBuilder()
.setName('simlive')
.setDescription('simulates a live event'),
async execute(interaction) {
if(!interaction.member.permissions.has("ADMINISTRATOR")){
return await interaction.reply({
content: "Unprivileged Access!",
ephemeral: true
})
}
const streamer = 'x__hel__x'
interaction.client.emit('TwitchLive', streamer)
await interaction.reply({
content: "Done!",
ephemeral: true
})
}
}