RealSGII2_CustomCommandBot/Shared/Utilities/IntUtilities.cs
namespace CustomCommandBot.Shared.Utilities
{
    public static class IntUtilities
    {
        public static string ToOrdinal(this int value)
        {
            if (value <= 0) return value.ToString();

            switch (value % 100)
            {
                case 11:
                case 12:
                case 13:
                    return value + "th";
            }

            switch (value % 10)
            {
                case 1:
                    return value + "st";
                case 2:
                    return value + "nd";
                case 3:
                    return value + "rd";
                default:
                    return value + "th";
            }
        }
    }
}
