Update StreamNotificationCommands.cs

This commit is contained in:
samvaio 2016-12-03 18:18:51 +05:30 committed by GitHub
parent 1bb2ba420a
commit 68031183cd

View File

@ -274,10 +274,10 @@ namespace NadekoBot.Modules.Searches
} }
if (!removed) if (!removed)
{ {
await channel.SendMessageAsync(":anger: No such stream.").ConfigureAwait(false); await channel.SendMessageAsync(" No such stream.").ConfigureAwait(false);
return; return;
} }
await channel.SendMessageAsync($":ok: Removed `{username}`'s stream ({type}) from notifications.").ConfigureAwait(false); await channel.SendMessageAsync($"🗑 Removed `{username}`'s stream ({type}) from notifications.").ConfigureAwait(false);
} }
[NadekoCommand, Usage, Description, Aliases] [NadekoCommand, Usage, Description, Aliases]
@ -329,7 +329,7 @@ namespace NadekoBot.Modules.Searches
} }
catch catch
{ {
await channel.SendMessageAsync(":anger: Stream probably doesn't exist.").ConfigureAwait(false); await channel.SendMessageAsync(" Stream probably doesn't exist.").ConfigureAwait(false);
return; return;
} }
@ -340,10 +340,10 @@ namespace NadekoBot.Modules.Searches
.Add(stream); .Add(stream);
await uow.CompleteAsync().ConfigureAwait(false); await uow.CompleteAsync().ConfigureAwait(false);
} }
var msg = $"Stream is currently **{(data.IsLive ? "ONLINE" : "OFFLINE")}** with **{data.Views}** viewers"; var msg = $" Stream is currently **{(data.IsLive ? "ONLINE" : "OFFLINE")}** with **{data.Views}** viewers";
if (data.IsLive) if (data.IsLive)
msg += stream.GetLink(); msg += stream.GetLink();
msg = $":ok: I will notify this channel when status changes.\n{msg}"; msg = $"🆗 I will notify this channel when status changes.\n{msg}";
await channel.SendMessageAsync(msg).ConfigureAwait(false); await channel.SendMessageAsync(msg).ConfigureAwait(false);
} }
} }
@ -363,4 +363,4 @@ namespace NadekoBot.Modules.Searches
return "???"; return "???";
} }
} }
} }