[Streams] Clearer instructions for Twitch's Client ID (#1874)

This commit is contained in:
Twentysix 2018-07-04 11:44:20 +02:00 committed by Kowlin
parent 4f197fd5f9
commit 97b70c35ee

View File

@ -294,9 +294,16 @@ class Streams:
@streamset.command() @streamset.command()
@checks.is_owner() @checks.is_owner()
async def twitchtoken(self, token : str): async def twitchtoken(self, token : str):
"""Sets the Client-ID for Twitch """Sets the Client ID for twitch
https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843""" To do this, follow these steps:
1. Go to this page: https://dev.twitch.tv/dashboard/apps.
2. Click 'Register Your Application'
3. Enter a name, set the OAuth Redirect URI to 'http://localhost', and
select an Application Category of your choosing.
4. Click 'Register', and on the following page, copy the Client ID.
5. Paste the Client ID into this command. Done!
"""
self.settings["TWITCH_TOKEN"] = token self.settings["TWITCH_TOKEN"] = token
dataIO.save_json("data/streams/settings.json", self.settings) dataIO.save_json("data/streams/settings.json", self.settings)
await self.bot.say('Twitch Client-ID set.') await self.bot.say('Twitch Client-ID set.')