mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: Fixed most imports and some typescript changes
This commit is contained in:
1 parent
1a7f800ba2
commit
0d9f4bd404
60 files changed
+488
-265
No files matched your search
@@ -1,7 +1,9 @@
|
||||
import config from 'config';
|
||||
const embedOptions = config.get('embedOptions');
|
||||
import { EmbedOptions } from '../../types/configTypes';
|
||||
const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
const botOptions = config.get('botOptions');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
import { SlashCommandBuilder, EmbedBuilder } from 'discord.js';
|
||||
import loggerModule from '../../services/logger';
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
@@ -10,7 +12,7 @@ module.exports = {
|
||||
.setDMPermission(false)
|
||||
.setNSFW(false),
|
||||
execute: async ({ interaction, client, executionId }) => {
|
||||
const logger = require('../../services/logger').child({
|
||||
const logger = loggerModule.child({
|
||||
source: 'help.js',
|
||||
module: 'slashCommand',
|
||||
name: '/help',
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import config from 'config';
|
||||
const embedOptions = config.get('embedOptions');
|
||||
const { getUptimeFormatted } = require('../../utils/system/getUptimeFormatted');
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
import { EmbedOptions } from '../../types/configTypes';
|
||||
const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
import { getUptimeFormatted } from '../../utils/system/getUptimeFormatted';
|
||||
import{ SlashCommandBuilder, EmbedBuilder } from 'discord.js';
|
||||
import osu from 'node-os-utils';
|
||||
const { version } = require('../../../package.json');
|
||||
// @ts-ignore
|
||||
import { version } from '../../../package.json';
|
||||
import loggerModule from '../../services/logger';
|
||||
|
||||
module.exports = {
|
||||
isNew: false,
|
||||
@@ -14,7 +17,7 @@ module.exports = {
|
||||
.setDMPermission(false)
|
||||
.setNSFW(false),
|
||||
execute: async ({ interaction, client, executionId }) => {
|
||||
const logger = require('../../services/logger').child({
|
||||
const logger = loggerModule.child({
|
||||
source: 'status.js',
|
||||
module: 'slashCommand',
|
||||
name: '/status',
|
||||
|
||||
Reference in new issue
Block a user