From 188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 31 Oct 2009 15:16:49 -0500 Subject: convert Bot::Games to use IM::Engine::Plugin::Commands --- bin/run | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/run b/bin/run index 1d24279..011e74a 100644 --- a/bin/run +++ b/bin/run @@ -2,13 +2,21 @@ use strict; use warnings; use lib 'lib'; +use IM::Engine; use Bot::Games; -Bot::Games->new( - server => 'irc.efnet.net', - channels => ['#netmonster'], - nick => 'doygames', - username => 'doygames', - name => 'doygames', - prefix => '@', +IM::Engine->new( + interface => { + protocol => 'REPL', + }, + plugins => [ + Commands => { + namespace => 'Bot::Games::Game', + exclude_commands => qr/Bot::Games::Game::Role/, + prefix => '@', + alias => { + sg => 'superghost', + }, + }, + ], )->run; -- cgit v1.2.3-54-g00ecf