class FindSpam:
@staticmethod
def testtitle(title):
if 'vashikaran' in title or 'baba' in title or 'theotherthingy' in title:
# magic if matches word
elif title.upper() == title:
# magic if all caps
@Manish So in terms of the spam thingy I did, do you want like an array returned, empty if no matches, non-empty if matches, and 2 items if keyword and all caps?
@ManishEarth Oh, that's what you're getting at. I don't really know, the only thing I can think of is that some (read: keyword search) will generate fewer false-positives vs. ALL CAPS or others...
a=SEChatWrapper.SEChatWrapper("SE")
a.login(username,password)
print a.sendMessage("11540","Manish is still testing the wrapper --the wrapper, ca 15 milliseconds ago")
Also, if anyone is up to it, feel free to decipher how recieving messages in chat works. It has to do with /events if you're not on websockets. If you're on websockets, I haven't really looked into that. A decomposition of how to use either protocol would work. Preferably the latter, I guess.