Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from jabberbot import JabberBot
- import datetime
- class SystemInfoJabberBot(JabberBot):
- def bot_time( self, mess, args):
- """Displays current server time"""
- return str(datetime.datetime.now())
- username = 'my-jabberid@jabberserver.example.org'
- password = 'my-password'
- bot = SystemInfoJabberBot(username,password)
- bot.serve_forever()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement