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-DowloadRepositoryFirstcloethisrepositoryusiggit:
$gitcloehttps://github.com/realGuys/MadelieProtoPlugiSystem.gitGotoit'sdirectory:
$cdMadelieProtoPlugiSystem1.1.2-CofigAdRuJustruitadcofigitthroughyourtermialadaswerpromptstocofigyourbotsettigs:
$phpidex.phpEjoyyourfirst(user)botusigthisPlugiSystem!
1.2-UsigBrowser1.2.1-DowloadRepositoryDowloadrepositoryaszipfromhere,theuploaditoyourhostadextractit.
1.2.2-CofigAdRuRuidex.phpfilethroughyourbrowseradfillaskedformstocofigyourbotsettigs.
Ejoyyourfirst(user)botusigthisPlugiSystem!
2-Aytimecofiguratio2.1-UsigtermialRuidex.phpfilewith--cofigflag:
$phpidex.php--cofig2.2-UsigBrowserRuidex.phpfileibrowserwithcofigquery:
https://yourdomai.ext/path/to/idex.php?cofig3-HowToUse3.1-Plugis3.1.1-SytaxPlugifilesmustreturaarraywithtwocolumofvalues,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-LoadigPlugisOBotNoeedtodothat!Theplugiswillautomaticallyloadostartigbot.
3.1.3-AvailablePlugisThereissomeplugisforaddadmiaccesstootherusers,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






评论