summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-10-31 15:16:49 -0500
committerJesse Luehrs <doy@tozt.net>2009-10-31 15:28:04 -0500
commit188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c (patch)
tree89333ab23955cceb45dada36ffe89a7a23c855b3 /bin
parentda36dca6178721b1c91b5e680d01e2595c2b1801 (diff)
downloadbot-games-188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c.tar.gz
bot-games-188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c.zip
convert Bot::Games to use IM::Engine::Plugin::Commands
Diffstat (limited to 'bin')
-rw-r--r--bin/run22
1 files changed, 15 insertions, 7 deletions
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;