Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user = user.split('!', 1)[0]
- msgParts = msg.split(':')
- if msg.startswith("!"):
- if user == 'Fox' or user == 'Josh':
- if msgParts[0].startswith("!join"):
- channel = msgParts[1]
- self.join(channel)
- elif msgParts[0].startswith("!leave"):
- channel = msgParts[1]
- msg = "Bye :("
- self.msg(channel, msg)
- time.sleep(1)
- self.part(channel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement