mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
commit
2c73440377
@ -31,7 +31,7 @@ class Sherlock():
|
|||||||
self.dict[social_network]["cache"] = dict()
|
self.dict[social_network]["cache"] = dict()
|
||||||
|
|
||||||
def check_network(self, username, social_network):
|
def check_network(self, username, social_network):
|
||||||
username = str(username)
|
username = str(username).lower()
|
||||||
|
|
||||||
if username in list(self.dict[social_network]["cache"].keys()):
|
if username in list(self.dict[social_network]["cache"].keys()):
|
||||||
if time.time() - self.dict[social_network]["cache"][username]["time"] <= 1800:
|
if time.time() - self.dict[social_network]["cache"][username]["time"] <= 1800:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user