Skip to content

A discord bot to find people to play games with easily on your server.

Notifications You must be signed in to change notification settings

NickDelfino/looking-for-group

Repository files navigation

Looking for Group (LFG)

What is it?

Set up local dev environment

Contribute

What is it?

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.

lfg_demo

Setup local dev environment

This guide should be followed to setup a discord test bot and cloudflare account which can then leverage this code.

Register commands

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

Run locally

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.

Deploy to cloudflare

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.

Contribute

All contributions welcome. Feel free to create issues for features or bug fixes.

Join the development and community discord server!

About

A discord bot to find people to play games with easily on your server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published