mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
feat: temp host compat
This commit is contained in:
1 parent
4db068e8ab
commit
e35453f3e4
5 files changed
-55
No files matched your search
@@ -7,12 +7,9 @@ import {
|
||||
Routes,
|
||||
SlashCommandBuilder,
|
||||
} from 'discord.js';
|
||||
import { config } from 'dotenv';
|
||||
import { readdirSync } from 'fs';
|
||||
import discord from '../../discord.json' assert { type: 'json' };
|
||||
|
||||
config();
|
||||
|
||||
export interface CommandRegistry {
|
||||
data: SlashCommandBuilder;
|
||||
execute: (interaction: Interaction) => void;
|
||||
|
||||
@@ -4,12 +4,9 @@ import {
|
||||
EmbedBuilder,
|
||||
SlashCommandBuilder,
|
||||
} from 'discord.js';
|
||||
import { config } from 'dotenv';
|
||||
import discord from '../../discord.json' assert { type: 'json' };
|
||||
import AccountList from '../types/accountList.js';
|
||||
|
||||
config();
|
||||
|
||||
const SERVER_NAMES = { com: 'North America', eu: 'Europe', asia: 'Asia' };
|
||||
|
||||
export async function execute(
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { Client, GatewayIntentBits } from 'discord.js';
|
||||
import { config } from 'dotenv';
|
||||
import guildMemberAdd from './behaviors/guildMemberAdd.js';
|
||||
import interactionCreate from './behaviors/interactionCreate.js';
|
||||
import ready from './behaviors/ready.js';
|
||||
import tokenRequirements from './utilities/tokenRequirements.js';
|
||||
|
||||
config();
|
||||
tokenRequirements();
|
||||
|
||||
const client = new Client({
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import { config } from 'dotenv';
|
||||
|
||||
config();
|
||||
|
||||
export default function tokenRequirements() {
|
||||
if (!process.env.DISCORD_TOKEN) {
|
||||
throw new Error('DISCORD_TOKEN is not defined');
|
||||
|
||||
Reference in new issue
Block a user