renamed hitbox to smashcast
This commit is contained in:
parent
e2d7ed343c
commit
f02ac7cd78
@ -215,7 +215,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
type = FollowedStream.FollowedStreamType.Mixer;
|
type = FollowedStream.FollowedStreamType.Mixer;
|
||||||
break;
|
break;
|
||||||
case StreamNotificationConfig0_9.StreamType.Hitbox:
|
case StreamNotificationConfig0_9.StreamType.Hitbox:
|
||||||
type = FollowedStream.FollowedStreamType.Hitbox;
|
type = FollowedStream.FollowedStreamType.Smashcast;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -86,7 +86,7 @@ namespace NadekoBot.Modules.Searches.Services
|
|||||||
StreamStatus result;
|
StreamStatus result;
|
||||||
switch (stream.Type)
|
switch (stream.Type)
|
||||||
{
|
{
|
||||||
case FollowedStream.FollowedStreamType.Hitbox:
|
case FollowedStream.FollowedStreamType.Smashcast:
|
||||||
var hitboxUrl = $"https://api.hitbox.tv/media/status/{stream.Username.ToLowerInvariant()}";
|
var hitboxUrl = $"https://api.hitbox.tv/media/status/{stream.Username.ToLowerInvariant()}";
|
||||||
if (checkCache && _cachedStatuses.TryGetValue(hitboxUrl, out result))
|
if (checkCache && _cachedStatuses.TryGetValue(hitboxUrl, out result))
|
||||||
return result;
|
return result;
|
||||||
@ -178,7 +178,7 @@ namespace NadekoBot.Modules.Searches.Services
|
|||||||
|
|
||||||
public string GetLink(FollowedStream fs)
|
public string GetLink(FollowedStream fs)
|
||||||
{
|
{
|
||||||
if (fs.Type == FollowedStream.FollowedStreamType.Hitbox)
|
if (fs.Type == FollowedStream.FollowedStreamType.Smashcast)
|
||||||
return $"https://www.hitbox.tv/{fs.Username}/";
|
return $"https://www.hitbox.tv/{fs.Username}/";
|
||||||
if (fs.Type == FollowedStream.FollowedStreamType.Twitch)
|
if (fs.Type == FollowedStream.FollowedStreamType.Twitch)
|
||||||
return $"https://www.twitch.tv/{fs.Username}/";
|
return $"https://www.twitch.tv/{fs.Username}/";
|
||||||
|
@ -27,8 +27,8 @@ namespace NadekoBot.Modules.Searches
|
|||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[RequireUserPermission(GuildPermission.ManageMessages)]
|
[RequireUserPermission(GuildPermission.ManageMessages)]
|
||||||
public async Task Hitbox([Remainder] string username) =>
|
public async Task Smashcast([Remainder] string username) =>
|
||||||
await TrackStream((ITextChannel)Context.Channel, username, FollowedStream.FollowedStreamType.Hitbox)
|
await TrackStream((ITextChannel)Context.Channel, username, FollowedStream.FollowedStreamType.Smashcast)
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
|
||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
|
@ -1809,14 +1809,14 @@
|
|||||||
<data name="lolban_usage" xml:space="preserve">
|
<data name="lolban_usage" xml:space="preserve">
|
||||||
<value>`{0}lolban`</value>
|
<value>`{0}lolban`</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="hitbox_cmd" xml:space="preserve">
|
<data name="smashcast_cmd" xml:space="preserve">
|
||||||
<value>hitbox hb</value>
|
<value>smashcast hb</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="hitbox_desc" xml:space="preserve">
|
<data name="smashcast_desc" xml:space="preserve">
|
||||||
<value>Notifies this channel when a certain user starts streaming.</value>
|
<value>Notifies this channel when a certain user starts streaming.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="hitbox_usage" xml:space="preserve">
|
<data name="smashcast_usage" xml:space="preserve">
|
||||||
<value>`{0}hitbox SomeStreamer`</value>
|
<value>`{0}smashcast SomeStreamer`</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="twitch_cmd" xml:space="preserve">
|
<data name="twitch_cmd" xml:space="preserve">
|
||||||
<value>twitch tw</value>
|
<value>twitch tw</value>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
public enum FollowedStreamType
|
public enum FollowedStreamType
|
||||||
{
|
{
|
||||||
Twitch, Hitbox, Mixer
|
Twitch, Smashcast, Mixer
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int GetHashCode() =>
|
public override int GetHashCode() =>
|
||||||
|
Loading…
Reference in New Issue
Block a user