mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added admin commands for everything but abandon and close. Changed selection time weighted payout to a property instead of having different types
This commit is contained in:
@@ -497,4 +497,12 @@ public static class Money
|
||||
return payout;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Generate a short random string based on the first 4 bytes of a GUID for event IDs
|
||||
/// </summary>
|
||||
/// <returns>Returns a lowercase hex representation of the 4 bytes. e.g. 7ec79eb2</returns>
|
||||
public static string GenerateEventId()
|
||||
{
|
||||
return Convert.ToHexString(Guid.NewGuid().ToByteArray()[..4]).ToLower();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user