Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Comando ping / Ping Command
- if(!defined("RUNNED")) die('not allowed');
- class Plugin{
- var $Sender;
- public function Plugin(){
- global $sender;
- $this->Sender=$sender;
- }
- public function launch(){
- global $text; //$text es el mensaje
- //send("texto a enviar", $canal, respuesta);
- //$this->Sender = id del canal
- //Si querés que responda el mensaje, agregar true como parametro final, por ejemplo:
- //send('pong! xd',$this->Sender, true);
- send('pong! xd',$this->Sender);
- }
- }
Add Comment
Please, Sign In to add comment