Git Product home page Git Product logo

telegram's Introduction

Bobby B Bot - Telegram version

Build Status GitHub release GitHub All Releases GitHub issues GitHub ko-fi

In this repository you can find the Telegram version of the Bobby B Bot.

How to use it

Simply mention the bot's name (Bobby B) in your channel after adding it via this link, and the bot will reply with a random quote.

How to install

  1. Create a virtual environment and activate it (this is optional but when working with Python, I cannot recommend it enough) or create a root folder that will hold all the code;
  2. Clone discord repository inside this virtual enviroment folder (let's call it 'root') and then clone utils repository. The final structure should be somewhat similar to this:
+ root
└───+ telegram
│     |-- telegram_bot.py
└───+ utils
      |-- __init__.py
      |-- core.py
      |-- logging_config.ini
      |-- quotes.json
      |-- triggers.json
  1. Run command pip install -r requirements.txt in telegram directory (this should install the requirements for utils as well, otherwise, you can also run the command in utils folder);
  2. Done, you are ready to configure it.

TL;DR Installation:

$ python -m venv <venv_name>
$ cd venv_name
$ source bin/activate
(venv_name) $ git clone https://github.com/bobby-b-bot/telegram.git
(venv_name) $ git clone https://github.com/bobby-b-bot/utils.git
(venv_name) $ cd telegram
(venv_name) $ pip install -r requirements.txt

How to configure and run

  1. Create and maintain the .env file for environment variables in root discord folder (ENV = 'TEST' or 'PROD' and Telegram token in variable TOKEN)
  2. Create and mantain a logging_config.ini file in utils folder for logging configuration (see documentation);
  3. Run the bot (python telegram_bot.py)
  4. Have fun!

How to contribute

Feature requests such as new quotes are welcome via issues on GitHub! Feel free to contribute. You can also contribute by donating via Ko-fi or PayPal to keep the servers running.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.