def setstreaming(self, ctx, option : str, *url : str):
'''Set my streaming status'''
if option == "on" or option == "true":
if not url:
await clients.set_streaming_status()
return
else:
updated_game = ctx.message.server.me.game
if not updated_game:
updated_game = discord.Game(url = url[0], type = 1)
else:
updated_game.url = url[0]
updated_game.type = 1
else:
updated_game = ctx.message.server.me.game
updated_game.type = 0
await self.bot.change_status(game = updated_game)
评论列表
文章目录