git clone https://github.com/luisfun/discord-bot-hoyo-news discord-bot-hoyo-news
cd discord-bot-hoyo-news
npm i
Create a New Application from Dashboard.
Rename the file example.dev.var
and create a .dev.var
file.
Enter information in .dev.var
, referring to the Official Docs.
npx wrangler secret put DISCORD_APPLICATION_ID
npx wrangler secret put DISCORD_PUBLIC_KEY
npx wrangler secret put DISCORD_TOKEN
npx wrangler d1 create discord-bot-hoyo-news
Update wrangler.toml
with what is displayed on success.
npx wrangler d1 execute discord-bot-hoyo-news --file=./schema.sql
npm run register
npm run deploy
Enter https://discord-bot-hoyo-news.YOUER_DOMAIN.workers.dev
in the INTERACTIONS ENDPOINT URL.