fixes
This commit is contained in:
parent
6ef76125a2
commit
1fbe7a034e
@ -690,7 +690,7 @@ namespace NadekoBot.Modules.Music
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
IUserMessage msg = null;
|
IUserMessage msg = null;
|
||||||
try { msg = await ReplyConfirmLocalized("attempting_to_queue", Format.Bold(mpl.Songs.Count.ToString())).ConfigureAwait(false); } catch (Exception ex) { _log.Warn(ex); }
|
try { msg = await Context.Channel.SendMessageAsync(GetText("attempting_to_queue", Format.Bold(mpl.Songs.Count.ToString()))).ConfigureAwait(false); } catch (Exception ex) { _log.Warn(ex); }
|
||||||
foreach (var item in mpl.Songs)
|
foreach (var item in mpl.Songs)
|
||||||
{
|
{
|
||||||
var usr = (IGuildUser)Context.User;
|
var usr = (IGuildUser)Context.User;
|
||||||
|
@ -44,7 +44,8 @@ namespace NadekoBot.Modules.Utility
|
|||||||
Channel = channel;
|
Channel = channel;
|
||||||
|
|
||||||
Guild = NadekoBot.Client.GetGuild(repeater.GuildId);
|
Guild = NadekoBot.Client.GetGuild(repeater.GuildId);
|
||||||
Task.Run(Run);
|
if(Guild!=null)
|
||||||
|
Task.Run(Run);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -127,7 +128,9 @@ namespace NadekoBot.Modules.Utility
|
|||||||
await Task.Delay(5000).ConfigureAwait(false);
|
await Task.Delay(5000).ConfigureAwait(false);
|
||||||
Repeaters = new ConcurrentDictionary<ulong, ConcurrentQueue<RepeatRunner>>(NadekoBot.AllGuildConfigs
|
Repeaters = new ConcurrentDictionary<ulong, ConcurrentQueue<RepeatRunner>>(NadekoBot.AllGuildConfigs
|
||||||
.ToDictionary(gc => gc.GuildId,
|
.ToDictionary(gc => gc.GuildId,
|
||||||
gc => new ConcurrentQueue<RepeatRunner>(gc.GuildRepeaters.Select(gr => new RepeatRunner(gr)))));
|
gc => new ConcurrentQueue<RepeatRunner>(gc.GuildRepeaters
|
||||||
|
.Select(gr => new RepeatRunner(gr))
|
||||||
|
.Where(x => x.Guild != null))));
|
||||||
_ready = true;
|
_ready = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user