Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import json
- import random
- import re
- class HasanMod:
- __bot = None
- def __init__(self):
- print "[+] starting plugin '%s'" % self.__class__
- pass
- def register_bot(self, bot):
- self.__bot = bot
- def process_message(self, username, message):
- m = re.findall("[a-zA-Z0=9]*\.[a-zA-Z0=9]*", message)
- links = []
- for potential_link in m:
- links.append( m[0] )
- print links
- self.__bot.sendMessage("I've received your link @%s: %s" % (username, ",".join(links)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement