mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added the abandon Kasino feature. Migrated to an extension method for formatting usernames
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using KfChatDotNetBot.Models.DbModels;
|
||||
|
||||
namespace KfChatDotNetBot.Extensions;
|
||||
|
||||
@@ -130,4 +131,10 @@ public static class Extensions
|
||||
var charCount = Encoding.UTF8.GetCharCount(bytes, 0, limitBytes);
|
||||
return s.Substring(0, charCount);
|
||||
}
|
||||
|
||||
// Placeholder for future expansion involving custom titles
|
||||
public static string FormatUsername(this UserDbModel user)
|
||||
{
|
||||
return $"@{user.KfUsername}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user