A Discord bot that helps users schedule chess games with other players. The bot allows users to propose chess games with specific dates and times, and other players can accept these games.
- 🎮 Chess Game Scheduling: Propose chess games with date and time
- ⏰ Time Validation: Ensures games are scheduled during valid hours
- 👥 Player Matching: Other players can accept proposed games
- 📅 Flexible Date Parsing: Supports various date/time formats
- 🔔 Notifications: Players get DM notifications when games are confirmed/cancelled
- 🎯 Interactive Buttons: Easy-to-use buttons for accepting/cancelling games
- Thursday-Monday: 7:00 AM - 2:00 PM
- Wednesday: 7:00 AM - 12:00 PM
!ping- Test if bot is working!hello- Get a greeting!helpor!chess-help- Show help information
Simply mention "chess" and "play" or "game" in your message along with a date and time.
Examples:
- "I want to play chess on Friday at 10 AM"
- "Chess game on 12/15/2024 at 2:00 PM"
- "Looking to play chess on Monday at 1 PM"
- Node.js (v16 or higher)
- A Discord bot token
- Clone this repository
- Install dependencies:
npm install
- Copy
.env.exampleto.envand add your Discord bot token:cp .env.example .env
- Edit
.envand add your Discord bot token:DISCORD_TOKEN=your_discord_bot_token_here - Run the bot:
npm start
- Push this repository to GitHub
- Go to Railway
- Sign in with GitHub
- Click "New Project" → "Deploy from GitHub repo"
- Select your repository
- Add environment variable:
- Key:
DISCORD_TOKEN - Value: Your Discord bot token
- Key:
- Deploy!
DISCORD_TOKEN- Your Discord bot token (required)
discord.js- Discord API librarymoment- Date/time parsing and formattingdotenv- Environment variable management
MIT