git clone https://github.com/luisfun/discord-bot-hoyo-news discord-bot-hoyo-news
cd discord-bot-hoyo-news
npm iCreate 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_TOKENnpx wrangler d1 create discord-bot-hoyo-newsUpdate wrangler.toml with what is displayed on success.
npx wrangler d1 execute discord-bot-hoyo-news --file=./schema.sqlnpm run register
npm run deployEnter https://discord-bot-hoyo-news.YOUER_DOMAIN.workers.dev in the INTERACTIONS ENDPOINT URL.