mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 17:03:38 +00:00
Export modules in typescript
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { EmbedBuilder } from "discord.js";
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'bug',
|
||||
description: 'Report a bug',
|
||||
category: 'info',
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { EmbedBuilder } from "discord.js";
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'help',
|
||||
description: 'Get help using bot',
|
||||
category: 'info',
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { EmbedBuilder } from "discord.js";
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'invite',
|
||||
description: 'Invite Bot',
|
||||
category: 'info',
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { EmbedBuilder } from "discord.js";
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'list',
|
||||
description: 'List radio stations',
|
||||
category: 'radio',
|
||||
|
@ -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',
|
||||
|
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'next',
|
||||
description: 'Next Station',
|
||||
category: 'radio',
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { EmbedBuilder } from "discord.js";
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'nowplaying',
|
||||
description: 'Current Radio Station',
|
||||
category: 'radio',
|
||||
|
@ -4,7 +4,7 @@ const {
|
||||
joinVoiceChannel
|
||||
} = require("@discordjs/voice");
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: "play",
|
||||
usage: "<song name>",
|
||||
description: "Play radio",
|
||||
|
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'prev',
|
||||
description: 'Previous Station',
|
||||
category: 'radio',
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { EmbedBuilder } from "discord.js";
|
||||
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'statistics',
|
||||
description: 'Show statistics',
|
||||
category: 'info',
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { EmbedBuilder } from "discord.js";
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'status',
|
||||
description: 'Bot Status',
|
||||
category: 'info',
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { EmbedBuilder } from "discord.js";
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
name: 'stop',
|
||||
description: 'Stop radio',
|
||||
category: 'radio',
|
||||
|
Reference in New Issue
Block a user