feat: server

This commit is contained in:
TresAbhi committed 2023-06-26 15:05:05 +00:00
1 parent 8882c28267
commit aa0069a0a3
11 files changed
+504 -21

No files matched your search

View File
File renamed without changes.
+1 -1
View File
@@ -1,12 +1,12 @@
import { SlashCommandBuilder } from 'discord.js';
import packageJSON from '../../package.json' assert { type: 'json' };
import { client } from '../bot.js';
import { tankopedia } from '../core/blitz/tankopedia.js';
import { tankAverages } from '../core/blitzstars/tankAverages.js';
import cleanTable from '../core/interaction/cleanTable.js';
import infoEmbed from '../core/interaction/infoEmbed.js';
import getClientId from '../core/process/getClientId.js';
import { CommandRegistry } from '../events/interactionCreate/index.js';
import { client } from '../index.js';
const executionStart = new Date().getTime();
+1 -1
View File
@@ -1,12 +1,12 @@
import { SlashCommandBuilder } from 'discord.js';
import discord from '../../discord.json' assert { type: 'json' };
import { client } from '../bot.js';
import infoEmbed from '../core/interaction/infoEmbed.js';
import {
CommandRegistry,
guildCommands,
publicCommands,
} from '../events/interactionCreate/index.js';
import { client } from '../index.js';
export default {
inProduction: true,
+1 -1
View File
@@ -3,9 +3,9 @@ import {
ChatInputCommandInteraction,
EmbedBuilder,
} from 'discord.js';
import { client } from '../../bot.js';
import { NEGATIVE_COLOR } from '../../constants/colors.js';
import { handleError } from '../../events/error.js';
import { client } from '../../index.js';
export default async function wargamingError(
interaction: ChatInputCommandInteraction<CacheType>,
+1 -1
View File
@@ -3,9 +3,9 @@ import {
ChatInputCommandInteraction,
EmbedBuilder,
} from 'discord.js';
import { client } from '../../bot.js';
import { NEGATIVE_COLOR } from '../../constants/colors.js';
import { handleError } from '../../events/error.js';
import { client } from '../../index.js';
export default async function blitzStarsError(
interaction: ChatInputCommandInteraction<CacheType>,
+1 -1
View File
@@ -1,8 +1,8 @@
import { EmbedBuilder, TextChannel } from 'discord.js';
import discord from '../../discord.json' assert { type: 'json' };
import { client } from '../bot.js';
import { NEGATIVE_COLOR } from '../constants/colors.js';
import isDev from '../core/process/isDev.js';
import { client } from '../index.js';
const PROCESS_ERROR_EVENTS = ['uncaughtException'];
const CLIENT_ERROR_EVENTS = ['error'];
+7
View File
@@ -0,0 +1,7 @@
import express from 'express';
const app = express();
app.get('/', (req, res) => {
res.send('Hello World!');
});