D-Bot/plugins/echo.php

5 lines
175 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)) {
2015-06-26 00:19:40 -05:00
$BOT->exec("msg ".$from." ".escapeString($matches[1]));
2015-05-29 11:20:55 -05:00
}