Skip to content

leviobrabo/historicalevents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Historical facts

Historical Facts is a bot for Telegram that aims to spread knowledge of history and also to bring knowledge in a "light" and "calm" way to the entire public.

Functionalities

  • Sends historical events of the day

    • Private chat
    • Channel
    • Groups
  • Sends historical phrases

  • Sends Holidays of the day

  • Send Born of the day

  • Sends dead of the day

  • Sends images of historical events

    • Private chat
    • Channel
    • Groups
  • Send historical curiosities

  • Send commemorative dates

Prerequisites

You will need to have the following tools installed on your machine:

🤖 Deploy on Heroku

Deploy

🤖 Running the bot locally

# Clone this repository
$ git clone https://github.com/leviobrabo/historicalevents.git

# Access the project folder in terminal/cmd
$ cd historicalevents

# Install the dependencies

# Using NPM:
$ npm i

# Environment variables

# Create a file with .env with any text editor and put:
DB_STRING=#MongoDB Connection URL
TELEGRAM_API=#Token of your bot generated in @BotFather
groupId=#ID GROUP LOG
DEV_USERS=#ID_DEV // userId1,userId2,userId3
channelId=ID_CHANNEL_POST

# Run the application
$ npm start

Ready, the bot will already be running