Skip to content

Bot that sorts players into balanced teams based on their skills

Notifications You must be signed in to change notification settings

oitan/match-maker-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preparation

  1. Create a project on Deno Deploy.
  2. Set the BOT_TOKEN variable to your token (this can be done in project’s settings).
  3. Set your bot’s webhook url to https://<PROJECT_NAME>.deno.dev/<BOT_TOKEN> (replacing <...> with respective values). To do that, you can open the request URL in your browser:
https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=https://<PROJECT_NAME>.deno.dev/<BOT_TOKEN>

Deploying with GitHub (easy)

  1. Push your project to a GitHub repository.
  2. Set up GitHub Integration in the project’s settings. Select server.ts as entry point.
  3. You’re done! New versions will be automatically deployed on push.

Deploying with deployctl (advanced)

  1. Install deployctl
  2. Create a new access token. Save it somewhere
  3. Run this command to deploy: deployctl deploy --project <PROJECT_NAME> ./server.ts --prod --token <ACCESS_TOKEN>

Running the bot locally

Use poll.ts to run the bot locally for development. Note that it will delete the webhook URL and you’ll need to repeat the 3rd step to be able to run the bot on Deno Deploy.

About

Bot that sorts players into balanced teams based on their skills

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published