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=
5
5
DISCORD_APP_PUBLIC_KEY=
6
6
7
7
# 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
9
10
DISCORD_BOT_TOKEN=
10
11
11
12
# 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) {
86
86
[ ]
87
87
)
88
88
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
- }
112
89
return NextResponse . json ( {
113
90
type : InteractionResponseType . ChannelMessageWithSource ,
114
91
data : {
You can’t perform that action at this time.
0 commit comments