From 1b6ee5bd0a6eb53fc5a4864057325cd09dee34a8 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Thu, 17 Mar 2016 01:39:22 +0100 Subject: [PATCH] attempted to fix twitch link announcement and lol champ --- NadekoBot/Commands/LoLCommands.cs | 2 +- NadekoBot/Commands/StreamNotifications.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NadekoBot/Commands/LoLCommands.cs b/NadekoBot/Commands/LoLCommands.cs index 45d044f3..4dec9a9c 100644 --- a/NadekoBot/Commands/LoLCommands.cs +++ b/NadekoBot/Commands/LoLCommands.cs @@ -66,7 +66,7 @@ namespace NadekoBot.Commands { //get role var role = ResolvePos(e.GetArg("position")); var resolvedRole = role; - var name = e.GetArg("champ").Replace(" ", ""); + var name = e.GetArg("champ").Replace(" ", "").ToLower(); CachedChampion champ = null; lock (cacheLock) { CachedChampionImages.TryGetValue(name + "_" + resolvedRole, out champ); diff --git a/NadekoBot/Commands/StreamNotifications.cs b/NadekoBot/Commands/StreamNotifications.cs index 9e61967a..70d26049 100644 --- a/NadekoBot/Commands/StreamNotifications.cs +++ b/NadekoBot/Commands/StreamNotifications.cs @@ -44,9 +44,9 @@ namespace NadekoBot.Commands { $"**{data.Item2}** viewers."; if (stream.LastStatus) if (stream.Type == StreamNotificationConfig.StreamType.Hitbox) - msg += $"\n`Here is the Link:`【 http://www.hitbox.tv/{stream.Username} 】"; + msg += $"\n`Here is the Link:`【 http://www.hitbox.tv/{stream.Username}/ 】"; else if (stream.Type == StreamNotificationConfig.StreamType.Twitch) - msg += $"\n`Here is the Link:`【 http://www.twitch.tv/{stream.Username} 】"; + msg += $"\n`Here is the Link:`【 http://www.twitch.tv/{stream.Username}/ 】"; else if (stream.Type == StreamNotificationConfig.StreamType.YoutubeGaming) msg += $"\n`Here is the Link:`【 not implemented yet - {stream.Username} 】"; await channel.SendMessage(msg); @@ -173,9 +173,9 @@ namespace NadekoBot.Commands { var msg = $"Stream is currently **{(data.Item1 ? "ONLINE" : "OFFLINE")}** with **{data.Item2}** viewers"; if (data.Item1) if (type == StreamNotificationConfig.StreamType.Hitbox) - msg += $"\n`Here is the Link:`【 http://www.hitbox.tv/{stream.Username} 】"; + msg += $"\n`Here is the Link:`【 http://www.hitbox.tv/{stream.Username}/ 】"; else if (type == StreamNotificationConfig.StreamType.Twitch) - msg += $"\n`Here is the Link:`【 http://www.twitch.tv/{stream.Username} 】"; + msg += $"\n`Here is the Link:`【 http://www.twitch.tv/{stream.Username}/ 】"; else if (type == StreamNotificationConfig.StreamType.YoutubeGaming) msg += $"\n`Here is the Link:` not implemented yet - {stream.Username}"; stream.LastStatus = data.Item1;