feat: ban message now shows the ban reason and time when unbanned

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-06-13 19:08:43 +02:00
parent bc1d632e4c
commit 3abc1ba7ab
4 changed files with 26 additions and 5 deletions

View file

@ -106,4 +106,11 @@ public class TheManager
return BitConverter.ToString(bytes).Replace("-", "").ToLower();
}
public static DateTime ConvertToDateTime(long timestamp)
{
DateTime unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
DateTime date = unixEpoch.AddSeconds(timestamp);
return date;
}
}