File tree Expand file tree Collapse file tree 2 files changed +2
-24
lines changed
Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ DISCORD_APP_ID=
55DISCORD_APP_PUBLIC_KEY=
66
77# Settings -> Bot
8- # Required to register commands, not required to actually run the bot
8+ # Required to register commands and fetch the list of commands in the web app
9+ # Technically not required to actually run the bot
910DISCORD_BOT_TOKEN=
1011
1112# Set this with your local ngrok URL for the pokemon images to be served correctly.
Original file line number Diff line number Diff line change @@ -86,29 +86,6 @@ export async function POST(request: Request) {
8686 [ ]
8787 )
8888
89- const r = {
90- type : InteractionResponseType . ChannelMessageWithSource ,
91- data : {
92- embeds : [
93- {
94- title : capitalizeFirstLetter ( pokemon . name ) ,
95- image : {
96- url : `${ ROOT_URL } /api/pokemon/${ idOrName } ` ,
97- } ,
98- fields : [
99- {
100- name : "Pokedex" ,
101- value : `#${ String ( pokemon . id ) . padStart ( 3 , "0" ) } ` ,
102- } ,
103- {
104- name : "Type" ,
105- value : types . join ( "/" ) ,
106- } ,
107- ] ,
108- } ,
109- ] ,
110- } ,
111- }
11289 return NextResponse . json ( {
11390 type : InteractionResponseType . ChannelMessageWithSource ,
11491 data : {
You can’t perform that action at this time.
0 commit comments