Export modules in typescript

This commit is contained in:
Christer Warén
2023-06-04 04:29:42 +03:00
parent 56f0ab5a40
commit 9303c4fcc9
38 changed files with 38 additions and 38 deletions

View File

@ -1,4 +1,4 @@
module.exports = {
export default {
name: 'SIGINT',
execute(client) {
client.user.setStatus('dnd');

View File

@ -1,4 +1,4 @@
module.exports = {
export default {
name: 'SIGTERM',
execute(client) {
process.emit('SIGINT');

View File

@ -1,6 +1,6 @@
import { PermissionFlagsBits } from "discord.js";
module.exports = {
export default {
name: 'interactionCreate',
async execute(client, interaction) {

View File

@ -1,4 +1,4 @@
module.exports = {
export default {
name: 'messageDelete',
async execute(client, msg) {
if(!msg.author.bot || !msg.guild) return;

View File

@ -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) {

View File

@ -1,4 +1,4 @@
module.exports = {
export default {
name: 'uncaughtException',
execute(client, error) {
client.funcs.logger("Error");

View File

@ -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;

View File

@ -1,4 +1,4 @@
module.exports = {
export default {
name: 'warning',
execute(client, warning) {
if(warning.name == "ExperimentalWarning" && warning.message.startsWith("stream/web")) return;