Revert "!set stream"

This reverts commit 3a45a585b0b48fa748e8b579d8c36967697f1a91.
This commit is contained in:
Will Tekulve 2016-06-13 21:33:40 -04:00
parent 3a45a585b0
commit e6d9eeed25

View File

@ -275,27 +275,6 @@ class Owner:
log.debug('status cleared by owner') log.debug('status cleared by owner')
await self.bot.say("Done.") await self.bot.say("Done.")
@_set.command(pass_context=True)
@checks.is_owner()
async def stream(self, ctx, stream_name=None, *, status=None):
"""Sets Red's streaming status
Leaving both stream and status empty will clear it."""
if status:
status = status.strip()
if "twitch.tv/" not in stream:
stream = "https://www.twitch.tv/" + stream
await self.bot.change_status(discord.Game(type=1, url=stream, name=status))
log.debug('Owner has set streaming status and url to "{}" and {}'.format(status, stream))
elif stream is not None:
await send_cmd_help(ctx)
return
else:
await self.bot.change_status(None)
log.debug('status cleared by owner')
await self.bot.say("Done.")
@_set.command() @_set.command()
@checks.is_owner() @checks.is_owner()
async def avatar(self, url): async def avatar(self, url):
@ -575,4 +554,4 @@ def check_files():
def setup(bot): def setup(bot):
check_files() check_files()
n = Owner(bot) n = Owner(bot)
bot.add_cog(n) bot.add_cog(n)