mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: server
This commit is contained in:
1 parent
8882c28267
commit
aa0069a0a3
11 files changed
+504
-21
No files matched your search
File renamed without changes.
@@ -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,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,
|
||||
|
||||
@@ -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>,
|
||||
|
||||
@@ -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
@@ -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'];
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import express from 'express';
|
||||
|
||||
const app = express();
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hello World!');
|
||||
});
|
||||
Reference in new issue
Block a user