Skip to content

Telegram Bot for Anonymous Chat (Dragon and Trainer)

Notifications You must be signed in to change notification settings

daniellau88/dracobot2

Repository files navigation

dracobot2

System Requirements

  1. Python (>= 3.8.10)
  2. Pip (>= 21.2.4)
  3. MariaDB (>= 10.3.9) (or MySQL)
  4. virtualenv (>= 20.8.1) (if setting up project in virtual environment)

Setting up in Virtual Environment

  1. Setup Virtual Environment

    $ python -m venv venv
    
  2. Activate Virtual Environment

    $ source venv/bin/activate
    
  3. Update pip to latest version

    $ python -m pip install --upgrade pip
    
  4. Repeat the above steps to set up the project in the virtual environment Run the following code to deactivate the virtual environment

    $ deactivate
    

Note: Run all future commands after activating virtual environment to ensure consistencies

Getting Started

  1. Install Python Dependencies

    $ pip install -r requirements.txt
    
  2. Create the environment file (make a copy of env.sample and rename it to .env). Add the details for each environment variable.

    TELEGRAM_BOT_TOKEN=<put_your_telegram_bot_token_here>
    
  3. Create database

    $ python setup.py
    
  4. Run the python telegram server

    $ python main.py
    

About

Telegram Bot for Anonymous Chat (Dragon and Trainer)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages