global nadeko compilation issue

This commit is contained in:
Master Kwoth 2017-06-15 19:16:50 +02:00
parent dd1d21e29c
commit 809219acc3
4 changed files with 10 additions and 6 deletions

View File

@ -23,9 +23,9 @@ namespace NadekoBot.Modules.Games.Hangman
{ {
data = JsonConvert.DeserializeObject<Dictionary<string, HangmanObject[]>>(File.ReadAllText(termsPath)); data = JsonConvert.DeserializeObject<Dictionary<string, HangmanObject[]>>(File.ReadAllText(termsPath));
} }
catch (Exception ex) catch (Exception)
{ {
//ignored
} }
} }

View File

@ -431,7 +431,7 @@ namespace NadekoBot.Modules.Music
using (var http = new HttpClient()) using (var http = new HttpClient())
{ {
var scvids = JObject.Parse(await http.GetStringAsync($"http://scapi.nadekobot.me/resolve?url={pl}").ConfigureAwait(false))["tracks"].ToObject<SoundCloudVideo[]>(); var scvids = JObject.Parse(await http.GetStringAsync($"https://scapi.nadekobot.me/resolve?url={pl}").ConfigureAwait(false))["tracks"].ToObject<SoundCloudVideo[]>();
await _music.QueueSong(((IGuildUser)Context.User), (ITextChannel)Context.Channel, ((IGuildUser)Context.User).VoiceChannel, scvids[0].TrackLink).ConfigureAwait(false); await _music.QueueSong(((IGuildUser)Context.User), (ITextChannel)Context.Channel, ((IGuildUser)Context.User).VoiceChannel, scvids[0].TrackLink).ConfigureAwait(false);
MusicPlayer musicPlayer; MusicPlayer musicPlayer;

View File

@ -27,6 +27,7 @@ using NadekoBot.Services.Utility;
using NadekoBot.Services.Help; using NadekoBot.Services.Help;
using System.IO; using System.IO;
using NadekoBot.Services.Pokemon; using NadekoBot.Services.Pokemon;
using NadekoBot.DataStructures;
namespace NadekoBot namespace NadekoBot
{ {
@ -279,7 +280,7 @@ namespace NadekoBot
var _ = await CommandService.AddModulesAsync(this.GetType().GetTypeInfo().Assembly); var _ = await CommandService.AddModulesAsync(this.GetType().GetTypeInfo().Assembly);
//Console.WriteLine(string.Join(", ", CommandService.Commands //Console.WriteLine(string.Join(", ", CommandService.Commands
// .Distinct(x => x.Name + x.Module.Name) // .Distinct(x => x.Name + x.Module.Name)
// .SelectMany(x => x.Aliases) // .SelectMany(x => x.Aliases)
@ -287,8 +288,8 @@ namespace NadekoBot
// .Where(x => x.Count() > 1) // .Where(x => x.Count() > 1)
// .Select(x => x.Key + $"({x.Count()})"))); // .Select(x => x.Key + $"({x.Count()})")));
//unload modules which are not available on the public bot
#if GLOBAL_NADEKO #if GLOBAL_NADEKO
//unload modules which are not available on the public bot
CommandService CommandService
.Modules .Modules
.ToArray() .ToArray()

View File

@ -94,7 +94,10 @@ namespace NadekoBot.Extensions
} }
} }
} }
catch (Exception ex) { } catch (Exception)
{
//ignored
}
}; };
using (msg.OnReaction(client, changePage, changePage)) using (msg.OnReaction(client, changePage, changePage))