|
@@ -1,4 +1,5 @@
|
|
|
using System;
|
|
|
+using System.Reflection;
|
|
|
using System.Text;
|
|
|
using System.Text.RegularExpressions;
|
|
|
using DSharpPlus.EventArgs;
|
|
@@ -23,6 +24,19 @@ namespace TFABot.DiscordBot.Commands
|
|
|
var sb = new StringBuilder();
|
|
|
sb.Append("```");
|
|
|
sb.AppendLine(clsGitHead.GetHeadToString());
|
|
|
+
|
|
|
+ try
|
|
|
+ {
|
|
|
+ Type type = Type.GetType("Mono.Runtime");
|
|
|
+ if (type != null)
|
|
|
+ {
|
|
|
+ MethodInfo displayName = type.GetMethod("GetDisplayName", BindingFlags.NonPublic | BindingFlags.Static);
|
|
|
+ if (displayName != null) sb.AppendLine($"Mono Runtime: {displayName.Invoke(null, null)}");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch { } ;
|
|
|
+
|
|
|
+
|
|
|
sb.Append("```");
|
|
|
e.Channel.SendMessageAsync(sb.ToString());
|
|
|
}
|