mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: DISCORD_CLIENT_ID
This commit is contained in:
1 parent
adf0aecd13
commit
5ec40271f8
6 files changed
+3
-14
No files matched your search
@@ -31,4 +31,4 @@ jobs:
|
||||
unzip bot.zip -d dist/bot
|
||||
|
||||
- name: Run bot
|
||||
run: mv dist/bot/prisma . && mv dist/bot/node_modules . && mv dist/bot/package.json . && mv dist/bot/.env . && GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} NODE_ENV=production bun dist/bot/index.js --production
|
||||
run: mv dist/bot/prisma . && mv dist/bot/node_modules . && mv dist/bot/package.json . && mv dist/bot/.env . && GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} DISCORD_CLIENT_ID=${{ secrets.DISCORD_CLIENT_ID }} bun dist/bot/index.js --production
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"client_id": "1097673957865443370",
|
||||
"client_id_dev": "1099063696015229078"
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
import discord from '../../../discord.json' assert { type: 'json' };
|
||||
import isDev from './isDev';
|
||||
|
||||
export default function getClientId() {
|
||||
return isDev() ? discord.client_id_dev : discord.client_id;
|
||||
}
|
||||
@@ -4,6 +4,7 @@ config();
|
||||
|
||||
const SECRET_KEYS = [
|
||||
'DISCORD_TOKEN',
|
||||
'DISCORD_CLIENT_ID',
|
||||
'GH_TOKEN',
|
||||
'DATABASE_URL',
|
||||
'WOTB_DLC_CDN',
|
||||
|
||||
@@ -32,7 +32,6 @@ import { searchClansCommand } from '../../commands/searchClans';
|
||||
import { searchPlayersCommand } from '../../commands/searchPlayers';
|
||||
import { statsCommand } from '../../commands/stats';
|
||||
import { todayCommand } from '../../commands/today';
|
||||
import getClientId from '../../core/blitzkit/getClientId';
|
||||
import isDev from '../../core/blitzkit/isDev';
|
||||
import { RenderConfiguration } from '../../core/blitzkit/renderConfiguration';
|
||||
import { secrets } from '../../core/blitzkit/secrets';
|
||||
@@ -124,7 +123,7 @@ commands.then((awaitedCommands) => {
|
||||
registry.command.toJSON(),
|
||||
);
|
||||
|
||||
rest.put(Routes.applicationCommands(getClientId()), { body });
|
||||
rest.put(Routes.applicationCommands(secrets.DISCORD_CLIENT_ID), { body });
|
||||
});
|
||||
|
||||
export default async function interactionCreate(
|
||||
|
||||
Reference in new issue
Block a user