Skip to content

A 3rd party script for reserving meals from dining.sharif.edu via Telegram

Notifications You must be signed in to change notification settings

onajafi/SweetCookie

Repository files navigation

Dining Bot

A better way to reserve your meal in http://dining.sharif.edu/

This project is not fully released yet

Setup

If you want to setup the bot on your own server follow these instructions.

This script was tested on Ubuntu 18.04

NodeJS

If you don't have nodeJS installed, take a look at this link:

https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

PhantomJS & CasperJS

Checkout this link for setup instructions:

https://gist.github.com/onajafi/60499a2a7749fe4af4fa19d2b377bc08

Telegram API python library

pyTelegramBotAPI is used to connect with the servers of Telegram, issue this commend to install it on your system:

pip2 install pyTelegramBotAPI

if you don't have pip installed, checkout this link.

python emoji library

pip2 install emoji

Clone the repo and initialize the script

Issue this command to get the script:

git clone https://github.com/onajafi/SweetCookie.git

In Telegram create your bot using BotFather.

After getting your bots TOKEN, copy it and open the inits.py file, then paste the token instead of <###THE BOTS TOKEN###> , set the feedBack_target_chat variable a chat ID you like the feedbacks to be forwarded to, otherwise, just write 0.

Now you can run the script:

cd SweetCookie/
python sweetcookie.py

Run the code on the back ground so it will keep running on the server while your logged off:

python sweetcookie.py &

About

A 3rd party script for reserving meals from dining.sharif.edu via Telegram

Resources

Stars

Watchers

Forks

Packages

No packages published