Looking for Group (add the bot here) is a Discord bot which helps you find people in your server to play games with. You can announce the game you want to play, when you want to play (minutes from now), and let specific people know you want to play. The bot message has an "I'm in!" button other users in the Discord channel can press to update the message with their handle. See the demo below.
This guide should be followed to setup a discord test bot and cloudflare account which can then leverage this code.
When registering new commands or updating existing commands, run this on the command line:
DISCORD_TOKEN=<INSERT TOKEN> DISCORD_APPLICATION_ID=<INSERT ID> node src/register.js
To deploy to cloudflare, copy the wrangler.toml.example
and rename it to
wrangler.toml
. Fill in the blanks with the correct information. You'll need your cloudflare account id,
keyspace id, and preview keyspace id.
To run locally, start up the cloudflare worker locally: npm run dev
To get a routable external url, run this command: npm run ngrok
This returned url needs to get pasted in the interactions endpoint text box on your app development page.
Once this is complete, to deploy to cloudflare, use npm run publish
.
The above assumes the wrangler CLI has been installed and connected to the correct project.
All contributions welcome. Feel free to create issues for features or bug fixes.
Join the development and community discord server!