Skip to content

Commit 4b460ae

Browse files
committed
feat: Add the godb command
1 parent 327547d commit 4b460ae

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

src/discord/commands/godb.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { updatePokemonGOCache } from '@/cache/pokemonGo';
2+
import { BOT_CHANNEL_ID, SERVER_ID } from '@/discord/constants/servers/pokemongo';
3+
4+
import type { DiscCommand } from '@/types/chat';
5+
6+
export const command: DiscCommand = {
7+
name: 'godb',
8+
desc: 'Updates the Pokémon GO database on PartBot.',
9+
servers: [SERVER_ID],
10+
async run(interaction) {
11+
if (interaction.channelId !== BOT_CHANNEL_ID) return interaction.reply('_softly flexes_ (not this channel)');
12+
await updatePokemonGOCache();
13+
interaction.reply('Done!');
14+
},
15+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const SERVER_ID = '292873182677958657';
2+
3+
export const BOT_CHANNEL_ID = '859528623446294538';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const SERVER_ID = '719076445699440700';
2+
3+
export const CHAOS_CHANNEL_ID = '762324232948023316';

0 commit comments

Comments
 (0)