Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######
- import ch
- #from datetime import datetime
- def init(mgr):
- mgr.addPattern(r"pm (?P<n1>\w+) (?P<n2>\w+)$", 6, pm)
- def pm(mgr, pm, user, body, m):
- if m.group("n1"):
- user1 = m.group("n1")
- if m.group("n2"):
- body = m.group("n2")
- mgr._pm.message(user1, body)
- return "valid"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement