Skip to content

Commit 28d1c88

Browse files
committed
remove unused variable, update .env.local.example
1 parent c0456c8 commit 28d1c88

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

.env.local.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ DISCORD_APP_ID=
55
DISCORD_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
910
DISCORD_BOT_TOKEN=
1011

1112
# Set this with your local ngrok URL for the pokemon images to be served correctly.

src/app/api/interactions/route.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff 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: {

0 commit comments

Comments
 (0)