Code Monkey home page Code Monkey logo

bot's Introduction

Python Linux Windows

PBModular

A simple modular bot for anything you code.

Features

  • Modularity

  • Linux, Windows and Android (Termux) support >.<

    To work on Windows and Android, you must remove the uvloop dependency from the requrements.txt before installing

  • Open Source, lol

Authors

Contributing

Contributions are always welcome!

License

GNU GPLv3

Installation

You can use install.sh bash installation script (thanks to @vilander1337) or proceed with manual installation below

sh -c "$(curl -fsSL https://raw.githubusercontent.com/pbmodular/bot/master/install.sh)"

Manual installation

  1. Clone repository

    git clone https://github.com/PBModular/bot PBModular
  2. Install Python packages (and setup venv, if you want)

    python -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
  3. Copy config.example.yaml to config.yaml

  4. Edit config.yaml

  5. Run it!

    python main.py

To run bot automatically at system boot (if you're using systemd and Linux) you can use this example systemd daemon:

[Unit]
Description=Any description of daemon here
After=network.target

[Service]
WorkingDirectory=/path/to/bot/sources
Type=simple
User=cooluser
# If you don't use venv, change python path to /usr/bin/python3 in a command below
ExecStart=/path/to/bot/sources/venv/bin/python3 -u /path/to/bot/sources/main.py
# Restart bot after fail
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Wiki translation

English wiki is in progress now... Currently the only available language is russian.

Windows support

It should be mentioned that Windows support is not gueranteed at all! Something can break randomly just because we are writing for *nix environment.

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.