21 lines
No EOL
627 B
C#
21 lines
No EOL
627 B
C#
using System.Reflection;
|
|
|
|
namespace Geekbot.net.Lib
|
|
{
|
|
public static class Constants
|
|
{
|
|
public const string Name = "Geekbot";
|
|
|
|
public static string BotVersion()
|
|
{
|
|
return typeof(Program).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
|
|
}
|
|
|
|
public static string LibraryVersion()
|
|
{
|
|
return typeof(Discord.WebSocket.DiscordSocketClient).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
|
|
}
|
|
|
|
public const double ApiVersion = 1;
|
|
}
|
|
} |