Specifying globalNadeko as a configuration during build will not load music
This commit is contained in:
		@@ -18,7 +18,7 @@ using NadekoBot.Services.Database.Models;
 | 
			
		||||
 | 
			
		||||
namespace NadekoBot.Modules.Music
 | 
			
		||||
{
 | 
			
		||||
    [NadekoModule("Music", "!!")]
 | 
			
		||||
    [NadekoModule("Music", "!!", AutoLoad = false)]
 | 
			
		||||
    public partial class Music : DiscordModule
 | 
			
		||||
    {
 | 
			
		||||
        public static ConcurrentDictionary<ulong, MusicPlayer> MusicPlayers = new ConcurrentDictionary<ulong, MusicPlayer>();
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,7 @@ using NadekoBot.Modules.Permissions;
 | 
			
		||||
using Module = Discord.Commands.Module;
 | 
			
		||||
using NadekoBot.TypeReaders;
 | 
			
		||||
using System.Collections.Concurrent;
 | 
			
		||||
using NadekoBot.Modules.Music;
 | 
			
		||||
 | 
			
		||||
namespace NadekoBot
 | 
			
		||||
{
 | 
			
		||||
@@ -93,7 +94,9 @@ namespace NadekoBot
 | 
			
		||||
            await CommandHandler.StartHandling();
 | 
			
		||||
 | 
			
		||||
            await CommandService.LoadAssembly(Assembly.GetEntryAssembly(), depMap).ConfigureAwait(false);
 | 
			
		||||
 | 
			
		||||
#if !GLOBAL_NADEKO
 | 
			
		||||
            await CommandService.Load(new Music(Localizer, CommandService, Client, Google)).ConfigureAwait(false);
 | 
			
		||||
#endif
 | 
			
		||||
            Console.WriteLine(await Stats.Print().ConfigureAwait(false));
 | 
			
		||||
 | 
			
		||||
            await Task.Delay(-1);
 | 
			
		||||
 
 | 
			
		||||
@@ -10,12 +10,13 @@
 | 
			
		||||
      "exclude": [ ],
 | 
			
		||||
    },
 | 
			
		||||
    "copyToOutput": {
 | 
			
		||||
      "include": [ "data" , "libs"],
 | 
			
		||||
      "include": [ "data", "libs" ],
 | 
			
		||||
      "exclude": [ "data/musicdata" ],
 | 
			
		||||
      "mappings": {
 | 
			
		||||
        "./": "./libs"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    },
 | 
			
		||||
    "define": []
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "Microsoft.NETCore.App": {
 | 
			
		||||
@@ -51,5 +52,10 @@
 | 
			
		||||
        "portable-net45+win8+wpa81"
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "configurations": {
 | 
			
		||||
    "GlobalNadeko": {
 | 
			
		||||
      "buildOptions": {"define": ["GLOBAL_NADEKO"]}
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user