|
@ -62,7 +62,7 @@ class Extension: |
|
|
if member is None: |
|
|
if member is None: |
|
|
continue |
|
|
continue |
|
|
try: |
|
|
try: |
|
|
print(f"Remove role({role_id}) from {member}") |
|
|
print(f"Remove role({role_id}) from {member}", reason = "Автоматически, игрок больше не имеет вип") |
|
|
await member.remove_roles(VIP_ROLE) |
|
|
await member.remove_roles(VIP_ROLE) |
|
|
except Exception as err: |
|
|
except Exception as err: |
|
|
print(f"Failed remove role ({role_id}) to {member}, err: {err}") |
|
|
print(f"Failed remove role ({role_id}) to {member}, err: {err}") |
|
@ -72,6 +72,6 @@ class Extension: |
|
|
continue |
|
|
continue |
|
|
try: |
|
|
try: |
|
|
print(f"Add role({role_id}) to {member}") |
|
|
print(f"Add role({role_id}) to {member}") |
|
|
await member.add_roles(VIP_ROLE) |
|
|
await member.add_roles(VIP_ROLE, reason = "Автоматически, игрок приобрел(не точно) вип на серверах") |
|
|
except Exception as err: |
|
|
except Exception as err: |
|
|
print(f"Failed add role ({role_id}) to {member}, err: {err}") |
|
|
print(f"Failed add role ({role_id}) to {member}, err: {err}") |