mirror of
https://github.com/myned/watcher.git
synced 2024-11-01 12:22:38 +00:00
Add comment
This commit is contained in:
parent
9dfdf0287a
commit
50a6a5eab5
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ plugin = lightbulb.Plugin("activity")
|
||||||
@tasks.task(s=60)
|
@tasks.task(s=60)
|
||||||
async def check_activity():
|
async def check_activity():
|
||||||
for author_id, timestamp in c.db.items():
|
for author_id, timestamp in c.db.items():
|
||||||
|
# If time between now and timestamp >= duration
|
||||||
if dt.datetime.now(dt.timezone.utc) - timestamp >= dt.timedelta(seconds=c.config["duration"]):
|
if dt.datetime.now(dt.timezone.utc) - timestamp >= dt.timedelta(seconds=c.config["duration"]):
|
||||||
try:
|
try:
|
||||||
# Acquire member object
|
# Acquire member object
|
||||||
|
|
Loading…
Reference in a new issue