diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-10-31 15:16:49 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-10-31 15:28:04 -0500 |
commit | 188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c (patch) | |
tree | 89333ab23955cceb45dada36ffe89a7a23c855b3 /bin | |
parent | da36dca6178721b1c91b5e680d01e2595c2b1801 (diff) | |
download | bot-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/run | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -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; |