https://github.com/jkergal/drafty-v0
A Discord bot that automatically organizes draft tournaments on Magic The Gathering Discord servers.
https://github.com/jkergal/drafty-v0
bot discord discord-bot discord-js javascript nodejs
Last synced: 2 months ago
JSON representation
A Discord bot that automatically organizes draft tournaments on Magic The Gathering Discord servers.
- Host: GitHub
- URL: https://github.com/jkergal/drafty-v0
- Owner: jkergal
- Created: 2021-11-29T17:50:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-07T22:20:17.000Z (over 3 years ago)
- Last Synced: 2025-03-23T14:35:25.274Z (over 1 year ago)
- Topics: bot, discord, discord-bot, discord-js, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 248 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drafty
A Discord bot that automatically organizes draft tournaments on Magic The Gathering Discord servers.
## Warning
This bot is made for a specific Discord server. The french community of Magic The Gathering (Arena) players built several severs to improce the competitive pratice. One of them is about the limited format called "Draft".
You can obviously fork the code to inspire you, but it may not fit to your server.
## Description
Drafty does several things :
- it posts a scheduled message with the cron library, and puts reactions on it : this is a message proposing to members draft tournaments dates for the next week. 1 tournament per day of the week, so 1 reaction for each day.
- it collects all reaction from members on each emoji, and records all the entries in arrays
- when 8 users registered to one date, a "table" is complete : Drafty posts a check-in message in a specific channel
- then, the array for this day is cleared and regitrations are now open for a second table
## Environment Variables
To run this project, you will need to add the following environment variables to your .env file
`DISCORD_TOKEN`
`PREFIX`
## Installation
To run this project, you'll need to install with npm :
```discord.js
npm install discord.js
```
```cron
npm install cron
```
```dotenv
npm install dotenv
```
## Authors
- [@jkergal](https://github.com/jkergal) (hello@johannkergal.fr)
## 🔗 Links
[](https://johannkergal.fr/)
[](https://www.linkedin.com/in/johannkergal)
[](https://twitter.com/zetyd)