D-Bot/plugins/echo.php

5 lines
161 B
PHP
Raw Normal View History

2015-05-29 11:20:55 -05:00
<?php
PluginList("echo", "Echo what you typed.");
2015-05-29 11:20:55 -05:00
if (preg_match("/^".TAG."echo (.*)$/", $_GET['text'], $matches)) {
$BOT->exec("msg ".$from." ".$matches[1]);
}