mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
[Streams] Smashcast removal. (#5040)
* Remove smashcast * style * remove smash from cog guides
This commit is contained in:
@@ -6,7 +6,6 @@ from redbot.core.utils._internal_utils import send_to_owners_with_prefix_replace
|
||||
from redbot.core.utils.chat_formatting import escape, pagify
|
||||
|
||||
from .streamtypes import (
|
||||
HitboxStream,
|
||||
PicartoStream,
|
||||
Stream,
|
||||
TwitchStream,
|
||||
@@ -234,12 +233,6 @@ class Streams(commands.Cog):
|
||||
)
|
||||
await self.check_online(ctx, stream)
|
||||
|
||||
@commands.command()
|
||||
async def smashcast(self, ctx: commands.Context, channel_name: str):
|
||||
"""Check if a smashcast channel is live."""
|
||||
stream = HitboxStream(_bot=self.bot, name=channel_name)
|
||||
await self.check_online(ctx, stream)
|
||||
|
||||
@commands.command()
|
||||
async def picarto(self, ctx: commands.Context, channel_name: str):
|
||||
"""Check if a Picarto channel is live."""
|
||||
@@ -249,7 +242,7 @@ class Streams(commands.Cog):
|
||||
async def check_online(
|
||||
self,
|
||||
ctx: commands.Context,
|
||||
stream: Union[PicartoStream, HitboxStream, YoutubeStream, TwitchStream],
|
||||
stream: Union[PicartoStream, YoutubeStream, TwitchStream],
|
||||
):
|
||||
try:
|
||||
info = await stream.is_online()
|
||||
@@ -323,11 +316,6 @@ class Streams(commands.Cog):
|
||||
"""Toggle alerts in this channel for a YouTube stream."""
|
||||
await self.stream_alert(ctx, YoutubeStream, channel_name_or_id)
|
||||
|
||||
@streamalert.command(name="smashcast")
|
||||
async def smashcast_alert(self, ctx: commands.Context, channel_name: str):
|
||||
"""Toggle alerts in this channel for a Smashcast stream."""
|
||||
await self.stream_alert(ctx, HitboxStream, channel_name)
|
||||
|
||||
@streamalert.command(name="picarto")
|
||||
async def picarto_alert(self, ctx: commands.Context, channel_name: str):
|
||||
"""Toggle alerts in this channel for a Picarto stream."""
|
||||
|
||||
Reference in New Issue
Block a user