mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-03 03:44:31 +00:00
Export modules in typescript
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'SIGINT',
|
||||
execute(client) {
|
||||
client.user.setStatus('dnd');
|
||||
|
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'SIGTERM',
|
||||
execute(client) {
|
||||
process.emit('SIGINT');
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { PermissionFlagsBits } from "discord.js";
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'interactionCreate',
|
||||
async execute(client, interaction) {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'messageDelete',
|
||||
async execute(client, msg) {
|
||||
if(!msg.author.bot || !msg.guild) return;
|
||||
|
@ -4,7 +4,7 @@ import Stations from "../classes/Stations";
|
||||
import Streamer from "../classes/Streamer";
|
||||
import Statistics from "../classes/Statistics";
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'ready',
|
||||
async execute(client) {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'uncaughtException',
|
||||
execute(client, error) {
|
||||
client.funcs.logger("Error");
|
||||
|
@ -4,7 +4,7 @@ const {
|
||||
joinVoiceChannel
|
||||
} = require("@discordjs/voice");
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: "voiceStateUpdate",
|
||||
async execute(client, oldState, newState) {
|
||||
if (oldState.channel === null) return;
|
||||
|
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'warning',
|
||||
execute(client, warning) {
|
||||
if(warning.name == "ExperimentalWarning" && warning.message.startsWith("stream/web")) return;
|
||||
|
Reference in New Issue
Block a user