aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Derek <[email protected]>2019-01-08 16:45:22 -0500
committerGravatar Derek <[email protected]>2019-01-08 16:45:22 -0500
commit01a069c26fa2f45e2ad20ab9fc4c612a503b4d73 (patch)
tree42c43f4a95649cf3cfe25e992a6ad67a28301b82
parentUpdate method of obtaining last message to be simpler (diff)
Add linter exception
-rw-r--r--bot/cogs/free.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/free.py b/bot/cogs/free.py
index cd04275e2..076415ded 100644
--- a/bot/cogs/free.py
+++ b/bot/cogs/free.py
@@ -46,7 +46,7 @@ class Free:
messages = await channel.history(limit=seek).flatten()
msg = messages[seek-1]
else:
- msg = await channel.history(limit=1).next()
+ msg = await channel.history(limit=1).next() # noqa (False positive)
inactive = (datetime.utcnow() - msg.created_at).seconds
if inactive > self.TIME_INACTIVE: