A Discord Bot for Japanese proofreading with /kousei slash commend.
Implemented in Hono.
If you would like to run, you will need this.
- Yahoo App ID (API Key)
- Discord Public Key
- Discord Application ID
- Discord Token
Read this doc.
https://developer.yahoo.co.jp/sitemap/
https://discord.com/developers/docs/tutorials/hosting-on-cloudflare-workers
And, copy example.dev.vars to .dev.vars, and replace that.
YAHOO_APP_ID = "..."
DISCORD_APPLICATION_ID = "..."
DISCORD_TOKEN = "..."
DISCORD_PUBLIC_KEY = "..."# install dependencies
pnpm install
# setup slash command
pnpm run register
# dev server
pnpm run devrun another terminal ngrok.
ngrok http 8787and setup endpoint url.
https://discord.com/developers/docs/tutorials/hosting-on-cloudflare-workers#setting-up-ngrok
in this repo, default endpoint URL is <ROOT>/api/interactions for bot.
# setup slash command
pnpm run register
# deploy to Cloudflare Workers with Wrangler
pnpm run deployDon't forget to setup Interactions Endpoint URL, this URL is maybe *.*.workers.dev/api/interactions.
https://github.com/discord/cloudflare-sample-app
MIT
