mirror of
https://gitlab.com/gpvkt/twitchtts.git
synced 2025-04-19 02:02:26 +02:00
Update CHANGELOG.md, tts.py
This commit is contained in:
parent
45973580b8
commit
e462c1b9af
2 changed files with 5 additions and 2 deletions
|
@ -8,7 +8,10 @@ All notable changes to this project will be documented in this file.
|
|||
|
||||
* `!quickvote` feature (see README.md for details)
|
||||
* `!ping` command added
|
||||
* Option to start in TTS disabled mode
|
||||
|
||||
* Configoption to start TTS in disabled mode
|
||||
* OAuth-Token generator
|
||||
* Webbrowser autostart
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
2
tts.py
2
tts.py
|
@ -468,7 +468,7 @@ class HTTPserv(BaseHTTPRequestHandler):
|
|||
self.send_response(200)
|
||||
self.send_header('Content-type', 'text/html')
|
||||
self.end_headers()
|
||||
self.wfile.write(bytes("<html><head><title>OAuth Token Generator</title></head><body onload=\"displayCode();\"><div id=\"code\"><a href=\""+str(data.geturl())+"\">Click to start the OAuth process.</a></div><script>function displayCode() { var url = window.location.href; var test = url.indexOf(\"access_token\");if (test != -1) { token = url.substring(42,72); document.getElementById(\"code\").innerHTML = \"<p>oauth:\" + token + \"</p>\";}}</script></body></html>\n", "utf-8"))
|
||||
self.wfile.write(bytes("<html><head><title>OAuth Token Generator</title></head><body onload=\"displayCode();\"><div id=\"code\"><a href=\""+str(data.geturl())+"\">Click to start the OAuth process.</a></div><script>function displayCode() { var url = window.location.href; var test = url.indexOf(\"access_token\");if (test != -1) { token = url.substring(42,72); document.getElementById(\"code\").innerHTML = \"<p>oauth:\" + token + \"</p><p>Copy the token into your config.yml and restart the bot.</p>\";}}</script></body></html>\n", "utf-8"))
|
||||
else:
|
||||
self.send_response(500)
|
||||
self.send_header('Content-type', 'text/plain')
|
||||
|
|
Loading…
Add table
Reference in a new issue