ifblacklist.search(dbquery.id==msg['from']['id'])!=[]:#Is the person in the blacklist?
group_utilities.logger('blacklist',msg,False,0,0)
return
elif(datetime.datetime.now()-recentUsers[msg['from']['id']])>datetime.timedelta(0,cooldown_sec):#Was the the timestamp in the dictionary more than cooldown_sec ago
delrecentUsers[msg['from']['id']]#Remvoe the listing in the dict
recentUsers[msg['from']['id']]=datetime.datetime.now()#Puthis message in the dictionary
else:#Was the message sent less than cooldown_sec ago?