mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 14:38:49 +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,5 +1,6 @@
|
||||
import path from 'node:path';
|
||||
import fs from 'node:fs';
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const cookies = require(path.resolve('./cookies.json'));
|
||||
|
||||
try {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import https from 'node:https';
|
||||
import loggerModule from '../../services/logger';
|
||||
|
||||
exports.postBotStats = async ({ client, executionId }) => {
|
||||
const logger = require('../../services/logger').child({
|
||||
export const postBotStats = async ({ client, executionId }) => {
|
||||
const logger = loggerModule.child({
|
||||
source: 'postBotStats.js',
|
||||
module: 'utilOther',
|
||||
name: 'postBotStats',
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import config from 'config';
|
||||
import loggerModule from '../../services/logger';
|
||||
const loadTestOptions = config.get('loadTestOptions');
|
||||
|
||||
exports.startLoadTest = async ({ client, executionId }) => {
|
||||
const logger = require('../../services/logger').child({
|
||||
export const startLoadTest = async ({ client, executionId }) => {
|
||||
const logger = loggerModule.child({
|
||||
source: 'startLoadTest.js',
|
||||
module: 'utilOther',
|
||||
name: 'startLoadTest',
|
||||
|
||||
Reference in new issue
Block a user