Fix one mention of old userlog file

This commit is contained in:
Ave Ozkal 2018-12-27 14:32:16 +03:00
parent 91dd17e967
commit 6dedd74e97
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -54,7 +54,7 @@ class Logs:
await member.add_roles(*roles)
# Real hell zone.
with open("data/warnsv2.json", "r") as f:
with open("data/userlog.json", "r") as f:
warns = json.load(f)
try:
if len(warns[str(member.id)]["warns"]) == 0: