Twitch overlay/integration hub
- Chat messages
- Viewer avatars
Twitch overlay/integration hub
License: MIT License
Hey, the phax-bot-1 just keep restarting everytime.
I'm on windows with docker
This is the Traceback
Missing Twitch client id secret
Traceback (most recent call last):
File "/usr/local/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/lib/python3.8/runpy.py", line 144, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/local/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/app/phaxbot/web/__init__.py", line 24, in <module>
import_module(f'..{mod}.web', __name__)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/app/phaxbot/chat_overlay/web/__init__.py", line 11, in <module>
from ...bot import user
File "/app/phaxbot/bot/__init__.py", line 18, in <module>
helix = Helix(config.CLIENT_ID, config.CLIENT_SECRET)
File "/usr/local/lib/python3.8/site-packages/twitch/helix/helix.py", line 36, in __init__
bearer_token = requests.post(f"https://id.twitch.tv/oauth2/token"
KeyError: 'access_token'
EDIT : ok I understand, i need so set env variable for the apps to load. But where I set theses variables ?
EDIT2 : Ok, with the help of google, I know now we need to set up env variable in .env
Since we've already got a docker-compose
stack and 2 containers to serve and facilitate the web application, the chat bot may as well be containerized.
Documentation is needed both for developing new avatars within the system and getting the chat bot set up with OAuth bearer tokens, etc.
The list of avatars may eventually become too long for a 500 character message. A page listing the available avatars (and examples of them) will be necessary.
Rather than needing to touch docker.html
or index.html
to customize the overlay, you should be able to pass in the Twitch username via a query string or hash value.
Demonstrate the ability for avatars to exhibit independent behavior by implementing the following chicken sprite with idle animations:
The web
and bot
scripts are currently sharing JSON files in an incredibly crude fashion that needs to be rectified.
When there are more chatters in the list than allowed on-stream, the bot should prioritize folks who have been actively chatting.
Unsure if Flask/Flask-SocketIO should be used here or if it's worth going a bit lower level than that...
Users should have the ability to opt out of having an avatar on-screen. A hide
sentinel value could be used for this.
On instantiation, avatars are provided with a random x coordinate for appearing on-stream. This happens even when someone already has an avatar, but has selected a new one to replace it. The Avatar
class constructor needs an optional parameter for bypassing this behavior.
The last animation is not being selected, ever, when choosing idle animations. I think it has to do with how the boundaries between choices are considered.
Should be able to lock avatars down to particular user roles (e.g. VIP, moderator, etc.).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.