<s> import logging <EOL> from asyncirc . ircbot import IRCBot <EOL> import sys <EOL> if sys . hexversion > <NUM_LIT> : <EOL> raw_input = input <EOL> if len ( sys . argv ) < <NUM_LIT:4> : <EOL> print ( "<STR_LIT>" % sys . argv [ <NUM_LIT:0> ] ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> logging . basicConfig ( level = logging . DEBUG ) <EOL> irc = IRCBot ( sys . argv [ <NUM_LIT:1> ] , int ( sys . argv [ <NUM_LIT:2> ] ) , sys . argv [ <NUM_LIT:3> ] ) <EOL> @ irc . on_join <EOL> def on_join ( self , nick , host , channel ) : <EOL> self . msg ( channel , '<STR_LIT>' ) <EOL> @ irc . on_msg <EOL> def on_msg ( self , nick , host , channel , message ) : <EOL> if message . lower ( ) . startswith ( '<STR_LIT>' ) : <EOL> self . msg ( nick , '<STR_LIT>' ) <EOL> irc . start ( ) <EOL> irc . join ( "<STR_LIT>" ) <EOL> try : <EOL> while irc . running : <EOL> irc . send_raw ( raw_input ( "<STR_LIT>" ) ) <EOL> except KeyboardInterrupt : <EOL> print ( "<STR_LIT>" ) <EOL> finally : <EOL> irc . stop ( ) </s>
