Skip to content

Xaier310/Contests-Notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contests-Notification

Telegram bot link : http://t.me/contestsNOTIFY_bot

It is a telegram bot which scrapes codechef contests details and notify users on there custom timings. I have also used gmail api by which it also notifies users through gmail on custom timings.

Run Locally

Clone the project

  git clone https://github.com/Xaier310/Contests-Notification.git

Go to the project directory

  cd Contests-Notification

Install dependencies

  npm install

Start the server

  node Notifyme.js

Get Notifications for coding contests !!!!

NOTE : Till now we have only codechef notfication service available, we will add other platforms also

Some commands :
To get codechef notification :
/cc_addme

To stop notification of codechef :
/cc_removeme

To set timing ( like if you want notification 5 minutes before contest starts then use ) :
/cc_addtime 5min

To add multiple timings( Give timings seperated with space ) Like :
/cc_addtime 5min 2hr 3min

To remove your timing ( like you don't want notification before 5 minutes anymore then use ) :
/cc_removetime 5min

To remove multiple timings( Give timings seperated with space ) Like :
/cc_removetime 5min 2hr 7min

To get notifications on email as well then use :
/cc_addemail xyz@gmail.com

To remove email( If you don't want notification on email anymore ) :
/cc_removeemail

To see your timings, email & status :
/mydetails

To see codechef upcoming contests list :
/cc_upcomingcontests

To see this message again :
/help


Default setting :You will get automatically notification 10 minutes before the contests starts and when contests starts. To costimize your timings use
/cc_addtime and /cc_removetime

NOTE

Since heroku uses:- Dyno sleeping in which if an app has a free web dyno, and that dyno receives no web traffic in a 30-minute period, it will sleep. In addition to the web dyno sleeping, the worker dyno (if present) will also sleep. and if a sleeping web dyno receives web traffic, it will become active again after a short delay (assuming your account has free dyno hours available) You can use (http://kaffeine.herokuapp.com) to ping the heroku app every 30 minutes to prevent it from sleeping.

Some screenshots

1.

Codechef notification 1

2.

Codechef notification 2

3.

Codechef notification 3

Refrences

https://telegraf.js.org/
https://stackoverflow.com/

About

Get codechef contests notifications from telegram bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published