<s> from irc import IRCBot , run_bot <EOL> class GreeterBot ( IRCBot ) : <EOL> def greet ( self , nick , message , channel ) : <EOL> return '<STR_LIT>' % nick <EOL> def command_patterns ( self ) : <EOL> return ( <EOL> self . ping ( '<STR_LIT>' , self . greet ) , <EOL> ) <EOL> host = '<STR_LIT>' <EOL> port = <NUM_LIT> <EOL> nick = '<STR_LIT>' <EOL> run_bot ( GreeterBot , host , port , nick , [ '<STR_LIT>' ] ) </s>
