File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ } ;
Original file line number Diff line number Diff line change 1+ export const SERVER_ID = '292873182677958657' ;
2+
3+ export const BOT_CHANNEL_ID = '859528623446294538' ;
Original file line number Diff line number Diff line change 1+ export const SERVER_ID = '719076445699440700' ;
2+
3+ export const CHAOS_CHANNEL_ID = '762324232948023316' ;
You can’t perform that action at this time.
0 commit comments