From 8f2591356d72b4c12c2f2fc87d9e63106a93d579 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 31 Oct 2009 20:53:25 -0500 Subject: make Bot::Games handle instantiating an IM::Engine object from config --- bin/run | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'bin') diff --git a/bin/run b/bin/run index 011e74a..3748540 100644 --- a/bin/run +++ b/bin/run @@ -2,21 +2,6 @@ use strict; use warnings; use lib 'lib'; -use IM::Engine; use Bot::Games; -IM::Engine->new( - interface => { - protocol => 'REPL', - }, - plugins => [ - Commands => { - namespace => 'Bot::Games::Game', - exclude_commands => qr/Bot::Games::Game::Role/, - prefix => '@', - alias => { - sg => 'superghost', - }, - }, - ], -)->run; +Bot::Games->new_with_config->run; -- cgit v1.2.3-54-g00ecf