attempted to fix twitch link announcement and lol champ
This commit is contained in:
parent
9639d35b4e
commit
1b6ee5bd0a
@ -66,7 +66,7 @@ namespace NadekoBot.Commands {
|
|||||||
//get role
|
//get role
|
||||||
var role = ResolvePos(e.GetArg("position"));
|
var role = ResolvePos(e.GetArg("position"));
|
||||||
var resolvedRole = role;
|
var resolvedRole = role;
|
||||||
var name = e.GetArg("champ").Replace(" ", "");
|
var name = e.GetArg("champ").Replace(" ", "").ToLower();
|
||||||
CachedChampion champ = null;
|
CachedChampion champ = null;
|
||||||
lock (cacheLock) {
|
lock (cacheLock) {
|
||||||
CachedChampionImages.TryGetValue(name + "_" + resolvedRole, out champ);
|
CachedChampionImages.TryGetValue(name + "_" + resolvedRole, out champ);
|
||||||
|
@ -44,9 +44,9 @@ namespace NadekoBot.Commands {
|
|||||||
$"**{data.Item2}** viewers.";
|
$"**{data.Item2}** viewers.";
|
||||||
if (stream.LastStatus)
|
if (stream.LastStatus)
|
||||||
if (stream.Type == StreamNotificationConfig.StreamType.Hitbox)
|
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)
|
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)
|
else if (stream.Type == StreamNotificationConfig.StreamType.YoutubeGaming)
|
||||||
msg += $"\n`Here is the Link:`【 not implemented yet - {stream.Username} 】";
|
msg += $"\n`Here is the Link:`【 not implemented yet - {stream.Username} 】";
|
||||||
await channel.SendMessage(msg);
|
await channel.SendMessage(msg);
|
||||||
@ -173,9 +173,9 @@ namespace NadekoBot.Commands {
|
|||||||
var msg = $"Stream is currently **{(data.Item1 ? "ONLINE" : "OFFLINE")}** with **{data.Item2}** viewers";
|
var msg = $"Stream is currently **{(data.Item1 ? "ONLINE" : "OFFLINE")}** with **{data.Item2}** viewers";
|
||||||
if (data.Item1)
|
if (data.Item1)
|
||||||
if (type == StreamNotificationConfig.StreamType.Hitbox)
|
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)
|
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)
|
else if (type == StreamNotificationConfig.StreamType.YoutubeGaming)
|
||||||
msg += $"\n`Here is the Link:` not implemented yet - {stream.Username}";
|
msg += $"\n`Here is the Link:` not implemented yet - {stream.Username}";
|
||||||
stream.LastStatus = data.Item1;
|
stream.LastStatus = data.Item1;
|
||||||
|
Loading…
Reference in New Issue
Block a user