Skip to content

artembakhanov/bruh-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BruhBot

This is simple telegram bot that can send bruh sounds. Original bot can be found here.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

For running this project you need to install Python 3.6 or higher.
In Ubuntu, Mint and Debian you can install Python like this:

sudo apt-get install python3 python3-pip

You might also need a DBMS such as PostgreSQL or MySQL.

Installing

  1. Clone the repo
git clone https://github.com/artembakhanov/bruh-bot.git
  1. Change the directory
cd bruh-bot
  1. Install dependencies
sudo pip3 install -r requirements.txt
  1. Set config parameters (they are used if environment variables are not set).
TOKEN = "<your_bot_token>"
DATABASE_URL = "sqlite:///hello.db"
  1. Run main.py
python3 main.py

Deployment on Heroku

If you want to deploy this project on Heroku, follow these instructions.

  1. Create app
heroku create
  1. Set enviroment variables
  heroku config:set DATABASE_URL=<database_url>
  heroku config:set t_token=<your_bot_token>

If you want the bot to work on webhooks, add the following variables

  heroku config:set webhooks=<database_url>
  heroku config:set APP_URL=<your_heroku_app_url>
  1. Deploy the code
git push heroku master
  1. (Optional) If the bot is working on webhooks open you app in browser.

Built With

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/yourFeature)
  3. Commit your Changes (git commit -m 'Add some yourFeature')
  4. Push to the Branch (git push origin feature/yourFeature)
  5. Open a Pull Request

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • Memes are the best

Releases

No releases published

Packages

No packages published

Languages