Skip to content

leviobrabo/histeventsbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 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
  • Send quiz with historical questions 🆕 -Chat
    • Channel
  • Sends Presidents of each country 🆕

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/fatoshisbot.git

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

# Install dependencies

# Using pip:
$ pip3 install -r requirements.txt

# change the conf name
$ cp sample.bot.conf bot.conf

# Environment variables

# Create a file with bot.conf with any text editor and put:
[HISTORICALEVENTS]
TOKEN=
HIST_LOG=
HIST_CHANNEL=
BOT_NAME=
BOT_USERNAME=
OWNER_ID=
HIST_CHANNEL_POST =

[DB]
MONGO_CON=

[LOG]
LOG_PATH = /path/to/log/file

# Run the application
$ python3 factohistoricos.py

Ready, the bot will already be running