MadelineProtoPluginSystem开源项目

我要开发同款
匿名用户2021年11月08日
134阅读

技术信息

开源地址
https://github.com/esl/elarm
授权协议
MIT License

作品详情

MadelieProtoPlugiSystemV1.5

Afullyasycplugi-friedlyMadelieProtosourcebase

Usethissourcecodetomakeyourideasiaiceasycway!Justfollowthewaythatsourcecodeitselfiswrittei!

IstructiosTableOfCotets1-Istallatio1.1-UsigTermial1.1.1-DowloadRepository1.1.2-CofigAdRu1.2-UsigBrowser1.2.1-DowloadRepository1.2.2-CofigAdRu2-Aytimecofiguratio2.1-Usigtermial2.2-UsigBrowser3-HowToUse3.1-Plugis3.1.1-Sytax3.1.2-LoadigPlugisOBot3.1.3-AvailablePlugis3.1.4-AvailableCommads1-Istallatio1.1-UsigTermial1.1.1-DowloadRepository

Firstcloethisrepositoryusiggit:

$gitcloehttps://github.com/realGuys/MadelieProtoPlugiSystem.git

Gotoit'sdirectory:

$cdMadelieProtoPlugiSystem1.1.2-CofigAdRu

Justruitadcofigitthroughyourtermialadaswerpromptstocofigyourbotsettigs:

$phpidex.php

Ejoyyourfirst(user)botusigthisPlugiSystem!

1.2-UsigBrowser1.2.1-DowloadRepository

Dowloadrepositoryaszipfromhere,theuploaditoyourhostadextractit.

1.2.2-CofigAdRu

Ruidex.phpfilethroughyourbrowseradfillaskedformstocofigyourbotsettigs.

Ejoyyourfirst(user)botusigthisPlugiSystem!

2-Aytimecofiguratio2.1-Usigtermial

Ruidex.phpfilewith--cofigflag:

$phpidex.php--cofig2.2-UsigBrowser

Ruidex.phpfileibrowserwithcofigquery:

https://yourdomai.ext/path/to/idex.php?cofig3-HowToUse3.1-Plugis3.1.1-Sytax

Plugifilesmustreturaarraywithtwocolumofvalues,thefirstoedescribesroleofuserusigthecommad,thesecodoeiscommaditself!Youcamakeaplugiwithtwocommadsfortwodifferetrolesjustlikethis:

<?php/***Justaothersimpleplugi**/$commads['role1']['pig']=fuctio(array$update):\Geerator{yield$this->messages->sedMessage(['peer'=>$update,'message'=>'Pog!']);};$commads['role2']['hello']=fuctio(array$update):\Geerator{yield$this->messages->sedMessage(['peer'=>$update,'message'=>'Pog!']);};retur$commads;3.1.2-LoadigPlugisOBot

Noeedtodothat!Theplugiswillautomaticallyloadostartigbot.

3.1.3-AvailablePlugis

Thereissomeplugisforaddadmiaccesstootherusers,reloadigplugise.g.toapplyewchagesadsooitheplugisdirectory,usethamtomakeyourowawesomeplugis!

MaybeImakesomeewplugisadaddthemtorepositorytoo,youmaycommityourstoo!

3.1.4-AvailableCommadsCommadIformatiopigJustasimplepigcommad!getReports(o|off)Eable/DisableerrorreportigaddAdmi(@userame|reply)AddsewadmistobotusigaddAdmi@userameorsimplyreplythiscommadoamessageaddOwer(@userame|reply)Addsewowerstobot,usejustlikeaddAdmi!delAdmi(@userame|reply)Removesadmisfrombot,usejustlikeaddAdmi!listAdmiSedsalistofcurretadmisreloadReloadsPlugiSysteme.g.toapplyewchagesrestartRestartsthebotshutdowShutsthebotdow

功能介绍

MadelineProto Plugin System V1.5 A fully async plugin-friendly MadelineProto source base Use this...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论