Coder Social home page Coder Social logo

Python Linux Windows

PBModular

A simple modular bot for anything you code.

Features

  • Modularity

  • Linux, Windows (read below!) 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

Installation

You can use install.sh/ps1 bash/powershell installation scripts (thanks to @vilander1337) or proceed with manual installation below

For linux distros

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

For windows (run in powershell)

iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/PBModular/bot/master/install.ps1'))

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

Documentation

Russian docs

English docs

If you wanna add docs in your language contact with @vilander1337 or @SanyaPilot

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.

Authors

Contributing

Contributions are always welcome!

License

GNU GPLv3

pbmodular's Projects

admintools icon admintools

Some essential commands for group chats administration

animepic icon animepic

This module for PBModular is designed to request and view pictures from Gelbooru directly in Telegram.

bot icon bot

Modular Telegram bot built on top of Pyrogram for anything you code

demotivator icon demotivator

Create demotivators without watermarks and other crap

fsmexample icon fsmexample

Example module, demonstrating how to use finite state machine

moduletemplate icon moduletemplate

PBModular module template. You can use this as a starting point!

servermonitor icon servermonitor

Simple server monitoring. With ntfy.sh push notification features

terminalmod icon terminalmod

simple (not exactly) module for PBModular that performs the functions of a terminal and eval

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.