Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def handlePrivMessage ( connection, event ):
- print event.source().split ( '!' ) [ 0 ] + ': ' + event.arguments() [ 0 ]
- if event.arguments() [ 0 ].lower().find ( 'hello' ) == 0:
- connection.privmsg ( event.source().split ( '!' ) [ 0 ],'Hello.' )
- # Public messages
- def handlePubMessage ( connection, event ):
- print event.target() + '> ' + event.source().split ( '!' ) [ 0 ] + ': ' + event.arguments() [ 0 ]
- if event.arguments() [ 0 ].lower().find ( 'hello' ) == 0:
- connection.pubmsg ( event.source().split ( '!' ) [ 0 ],'Hello.' )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement