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,6 +1,6 @@
import { EmbedBuilder } from "discord.js";
module.exports = {
export default {
name: 'bug',
description: 'Report a bug',
category: 'info',

View File

@ -1,6 +1,6 @@
import { EmbedBuilder } from "discord.js";
module.exports = {
export default {
name: 'help',
description: 'Get help using bot',
category: 'info',

View File

@ -1,6 +1,6 @@
import { EmbedBuilder } from "discord.js";
module.exports = {
export default {
name: 'invite',
description: 'Invite Bot',
category: 'info',

View File

@ -1,6 +1,6 @@
import { EmbedBuilder } from "discord.js";
module.exports = {
export default {
name: 'list',
description: 'List radio stations',
category: 'radio',

View File

@ -3,7 +3,7 @@ import Streamer from "../classes/Streamer";
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
module.exports = {
export default {
name: 'maintenance',
description: 'Bot Maintenance',
category: 'info',

View File

@ -1,4 +1,4 @@
module.exports = {
export default {
name: 'next',
description: 'Next Station',
category: 'radio',

View File

@ -1,6 +1,6 @@
import { EmbedBuilder } from "discord.js";
module.exports = {
export default {
name: 'nowplaying',
description: 'Current Radio Station',
category: 'radio',

View File

@ -4,7 +4,7 @@ const {
joinVoiceChannel
} = require("@discordjs/voice");
module.exports = {
export default {
name: "play",
usage: "<song name>",
description: "Play radio",

View File

@ -1,4 +1,4 @@
module.exports = {
export default {
name: 'prev',
description: 'Previous Station',
category: 'radio',

View File

@ -1,7 +1,7 @@
import { EmbedBuilder } from "discord.js";
module.exports = {
export default {
name: 'statistics',
description: 'Show statistics',
category: 'info',

View File

@ -1,6 +1,6 @@
import { EmbedBuilder } from "discord.js";
module.exports = {
export default {
name: 'status',
description: 'Bot Status',
category: 'info',

View File

@ -1,6 +1,6 @@
import { EmbedBuilder } from "discord.js";
module.exports = {
export default {
name: 'stop',
description: 'Stop radio',
category: 'radio',