new versioning

This commit is contained in:
Master Kwoth 2016-02-29 07:54:29 +01:00
commit 63dbd8bac6
7 changed files with 17 additions and 16 deletions

View File

@ -6,10 +6,13 @@ using System.Diagnostics;
using System.Linq; using System.Linq;
using NadekoBot.Extensions; using NadekoBot.Extensions;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Reflection;
namespace NadekoBot { namespace NadekoBot {
public class NadekoStats { public class NadekoStats {
public string BotVersion = "NadekoBot 0.8-beta14"; public string BotVersion { get; } = $"{Assembly.GetExecutingAssembly().GetName().Name} v{Assembly.GetExecutingAssembly().GetName().Version.ToString()}";
private static readonly NadekoStats _instance = new NadekoStats(); private static readonly NadekoStats _instance = new NadekoStats();
public static NadekoStats Instance => _instance; public static NadekoStats Instance => _instance;

View File

@ -296,14 +296,13 @@ namespace NadekoBot.Modules {
await e.Channel.SendMessage($"🎵**Track at position `#{num}` has been removed.**"); await e.Channel.SendMessage($"🎵**Track at position `#{num}` has been removed.**");
}); });
cgb.CreateCommand("debug") //cgb.CreateCommand("debug")
.Description("Writes some music data to console. **BOT OWNER ONLY**") // .Description("Does something magical. **BOT OWNER ONLY**")
.AddCheck(Classes.Permissions.SimpleCheckers.OwnerOnly()) // .AddCheck(Classes.Permissions.SimpleCheckers.OwnerOnly())
.Do(e => { // .Do(e => {
var output = "SERVER_NAME---SERVER_ID-----USERCOUNT----QUEUED\n" + // var inactivePlayers =
string.Join("\n", musicPlayers.Select(kvp => kvp.Key.Name + "--" + kvp.Key.Id + " --" + kvp.Key.Users.Count() + "--" + kvp.Value.Playlist.Count)); // Console.WriteLine("");
Console.WriteLine(output); // });
});
}); });
} }

View File

@ -5,12 +5,13 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("NadekoBot")] [assembly: AssemblyDescription("Discord bot written in C#.")]
[assembly: AssemblyDescription("")] [assembly: AssemblyCompany("Kwoth")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyCopyright("Copyright © Kwoth 2015-2016")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NadekoBot")] [assembly: AssemblyProduct("NadekoBot")]
[assembly: AssemblyCopyright("Copyright © 2015")] [assembly: AssemblyVersion("0.9.*")]
[assembly: AssemblyTitle("NadekoBot")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -32,5 +33,3 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Binary file not shown.