mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[V3 Travis] Update travis to not skip pipfile lock... (#1678)
* Update travis to not sip pipfile lock update pipfile dependencies additional black formatting pass to conform to black 18.5b * . * pin async timeout until further discussion of 3.5 support * .
This commit is contained in:
@@ -36,9 +36,10 @@ class AntiSpam:
|
||||
self.__discard_after = max([x.period for x in self.__intervals])
|
||||
|
||||
def __interval_check(self, interval: AntiSpamInterval):
|
||||
return len(
|
||||
[t for t in self.__event_timestamps if (t + interval.period) > datetime.utcnow()]
|
||||
) >= interval.frequency
|
||||
return (
|
||||
len([t for t in self.__event_timestamps if (t + interval.period) > datetime.utcnow()])
|
||||
>= interval.frequency
|
||||
)
|
||||
|
||||
@property
|
||||
def spammy(self):
|
||||
|
||||
Reference in New Issue
Block a user