Skip to content

marknaman05/cf-whatsapp-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeforces WhatsApp Contest Reminder Bot

A WhatsApp bot that sends reminders for upcoming Codeforces contests.

Setup Instructions

  1. Install the required dependencies:
pip install -r requirements.txt
  1. Create a .env file in the project root with your Twilio credentials:
TWILIO_ACCOUNT_SID=your_account_sid
TWILIO_AUTH_TOKEN=your_auth_token
TWILIO_PHONE_NUMBER=your_twilio_whatsapp_number
  1. Set up a Twilio account:

  2. Run the bot:

python cf_bot.py
  1. To test the bot:
    • Send a WhatsApp message to your Twilio WhatsApp number
    • Send "contest" or "upcoming" to get information about upcoming contests
    • The bot will respond with details of contests happening in the next 24 hours

Features

  • Fetches upcoming Codeforces contests
  • Shows contest details including:
    • Contest name
    • Time until start
    • Contest duration
    • Registration link
  • Only shows contests within 24 hours
  • Simple WhatsApp interface

Note

This bot uses the Twilio sandbox environment, which requires you to send a specific message to join the sandbox. Follow Twilio's instructions to set this up properly.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors