A telegram bot that broadcasts a message in @CufeNatiga
whenever a new exam results appears.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
- Clone the repo
git clone https://github.com/Hassan950/CufeNatigaTelegramBot.git
- Install dependencies
npm install
you need to make your own .env
with the following structure.
dbURI=mongodb+srv://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
TELEGRAM_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
MY_PRIVATE_CHAT_ID=XXXXXXXXXX
dbURI
: The uri of the mongodb cluster.TELEGRAM_BOT_TOKEN
: Token of your telegram bot (See this guide for more info).MY_PRIVATE_CHAT_ID
: This is actually for testing in your private chat instead of filling the channel's chat with false alarms.
Upon creating .env
like in Environmental Variables section. run this in your terminal:
node index.js
You can test on your private chat by setting test
variable in index.js
to true (default: false).