Railsbin – The vulnerable pastebin service!

User:

Title: meg

Content:

<?php
namespace GDO\Dog\Method;

use GDO\Dog\DOG_Command;
use GDO\Dog\DOG_Message;
use GDO\UI\GDT_Message;

final class Echoes extends DOG_Command
{
	public function getTrigger()
	{
		return "echo";
	}
	
	public function gdoParameters()
	{
		return array(
			GDT_Message::make('text')->initial('ping'),
		);
	}
	
	public function dogExecute(DOG_Message $message, $text)
	{
		$message->reply($text);
	}
}

DOG_Command::register(new Echoes());

Edit | Back