|
|
@ -335,7 +335,11 @@ def ban2message(ban): |
|
|
|
message = f"Ник: {ban['player_name']}\n" |
|
|
|
message += f"Причина: {ban['ban_reason']}\n" |
|
|
|
message += f"Время: {utime2human(ban['ban_utime'])}\n" |
|
|
|
message += f"Кто забанил: {ban['banned_by']} | <@{ban['admin_info']['discord_id']}>\n" |
|
|
|
try: |
|
|
|
message += f"Кто забанил: {ban['banned_by']} | <@{ban['admin_info']['discord_id']}>\n" |
|
|
|
except: |
|
|
|
pass |
|
|
|
#что выше надо править |
|
|
|
if ban['active'] == True: |
|
|
|
if ban['ban_length'] == 0: |
|
|
|
message += "Данный бан навсегда!\n" |
|
|
|