mirror of
https://github.com/pieartsy/PluralFlux.git
synced 2026-04-16 17:45:28 +10:00
Revert "converted import syntax to commonJS"
This reverts commit 5ab0d62b
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
const {messageHelper} = require('helpers/messageHelper.js')
|
||||
const {enums} = require('enums.js')
|
||||
const {memberHelper} = require('helpers/memberHelper.js')
|
||||
const {importHelper} = require('helpers/importHelper.js');
|
||||
const {EmbedBuilder} = require('@fluxerjs/core');
|
||||
import {messageHelper} from "./helpers/messageHelper.js";
|
||||
import {enums} from "./enums.js";
|
||||
import {memberHelper} from "./helpers/memberHelper.js";
|
||||
import {EmbedBuilder} from "@fluxerjs/core";
|
||||
import {importHelper} from "./import.js";
|
||||
|
||||
const cmds = new Map();
|
||||
|
||||
let commands = new Map();
|
||||
|
||||
commands.set('member', {
|
||||
cmds.set('member', {
|
||||
description: enums.help.SHORT_DESC_MEMBER,
|
||||
async execute(message, client, args) {
|
||||
const authorFull = `${message.author.username}#${message.author.discriminator}`
|
||||
@@ -24,10 +23,10 @@ commands.set('member', {
|
||||
}
|
||||
})
|
||||
|
||||
commands.set('help', {
|
||||
cmds.set('help', {
|
||||
description: enums.help.SHORT_DESC_HELP,
|
||||
async execute(message) {
|
||||
const fields = [...commands.entries()].map(([name, cmd]) => ({
|
||||
const fields = [...cmds.entries()].map(([name, cmd]) => ({
|
||||
name: `${messageHelper.prefix}${name}`,
|
||||
value: cmd.description,
|
||||
inline: true,
|
||||
@@ -44,7 +43,7 @@ commands.set('help', {
|
||||
},
|
||||
})
|
||||
|
||||
commands.set('import', {
|
||||
cmds.set('import', {
|
||||
description: enums.help.SHORT_DESC_IMPORT,
|
||||
async execute(message) {
|
||||
if (message.content.includes('--help')) {
|
||||
@@ -71,4 +70,4 @@ commands.set('import', {
|
||||
}
|
||||
})
|
||||
|
||||
module.exports = commands;
|
||||
export const commands = cmds;
|
||||
Reference in New Issue
Block a user