Giter Site home page Giter Site logo

madelineprotopluginsystem's Introduction

Contributors Forks Stargazers Issues GPL3 License Telegram


Madelineproto Plugin System Logo

MadelineprotoPluginSystem

plugin system for madelineproto
Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

Product Name Screen Shot

This is a OOP plugins system for MadelineProto. This project aims to provide a platform where you can simply write a plugin for madelineproto and simply use it or share it with other people.

The project can:

  • Supports all types and methods according to MadelineProto 7.0.
  • New web UI.
  • Async plugins.
  • Regex pattern for plugins.
  • Conversation feature.
  • new update helper

(back to top)

Built With

(back to top)

Getting Started

for using this plugins system you need to follow the following steps.

Prerequisites

You'll need Git and composer.

Installation

  1. Clone the repo
    git clone https://github.com/OxMohsen/MadelineprotoPluginSystem.git
  2. Go to project directory:
    cd MadelineprotoPluginSystem
  3. Install packages with composer
    composer install
  4. Edit Config.php and then replace all necessary values with those of your project.

(back to top)

Usage

use through terminal.

  • you can run the project with default plugins by using following terminal command.
    php index.php
  • if you want to add new plugin, run this command:
    php helper plugin:make
  • if you want to remove a plugin, run this command:
    php helper plugin:remove
  • if you want to see plugin list, run this command:
    php helper plugin:list

use through browser.

After installation and configuration, create a zip of the project contents and transfer it to your host. extract the zip and open the folder url in your browser.

new update helper

in this project, you can simply access MadelineProto update in plugin via update helper. it's just need to use

$this->MadelineProto->update->getUpdate()->get('DOT.INDEX.SEPARATOR');

in your plugin class. for example if you want to access $update['message']['media'], you can use

$this->MadelineProto->update->getUpdate()->get('message.media');

if helper can find it, media will be returned otherwise null will be returned.

(back to top)

Plugin list

Plugin Usage Description Admin Only?
!broadcast send a message to all bot chats. YES
!phpdoc "function" send php documentation of target function. YES
!delmsgs 100 delete some messages from supergroups or channel. YES
!hash "string" send the md5, sha1, sha256, sha512 hash of the string. YES
!logout terminate the robot session. YES
!restart forcefully restart and apply changes. (Only work if running via web) YES
!shutdown shut the bot down. YES
!generatepassword send strong password. NO
!help send plugins usage. NO

(back to top)

Roadmap

  • add new plugins
    • eval plugin

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

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

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

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

(back to top)

License

Distributed under the GPL3 License. See LICENSE for more information.

(back to top)

Contact

Mohsen Falakedin - @OxMohsen - [email protected]

Project Link: https://github.com/OxMohsen/MadelineprotoPluginSystem

(back to top)

madelineprotopluginsystem's People

Contributors

mohsenjs avatar oxmohsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

oxmohsen 5l1v3r1

madelineprotopluginsystem's Issues

php index.php

php index.php
PHP Warning: require(/root/MadelineprotoPluginSystem/vendor/autoload.php): failed to open stream: No such file or directory in /root/MadelineprotoPluginSystem/index.php on line 10 PHP Fatal error: require(): Failed opening required '/root/MadelineprotoPluginSystem/vendor/autoload.php' (include_path='.:/usr/share/php') in /root/MadelineprotoPluginSystem/index.php on line 10

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.