harfeur / twitchalerts Goto Github PK
View Code? Open in Web Editor NEWThis bot allows you to display an alert during a Twitch live, and to update the message frequently. Messages and language are customizable.
License: MIT License
This bot allows you to display an alert during a Twitch live, and to update the message frequently. Messages and language are customizable.
License: MIT License
Hi,
Bit busy to reach out in Discord at the moment, but wanted to share my thoughts on how to scale the bot and make it more efficient.
I'd suggest using pm2 to scale the threads and breaking it up into three microservices, this diagram explains my thoughts. We'll use a sticky session technology on the web-ui workers so we don't have to do full sessions since the website isn't all that busy in comparison to the events and discord stacks. It can be scaled by adding more workers, one per vcpu.
You could possibly combine the web-ui with one of the other microservices. Logically speaking it would make sense to do that with the discord, as it'd remove the need for the internal alert api, however that's also the one likely to experience the most load/scaling issues, so possibly best to avoid that.
I've also excluded a database table for "currently live" streamers, however a simple async started when a online is received which checks the database every 15(?) minutes for changes to category or title until an offline is received would handle that.
Hey Harfeur, I am looking at doing some dev work on my fork of your bot and I am hoping you'd be willing to share your blank database schema please? I couldn't find it in the repository.
I'm happy to PR any of the code/changes back if they're of use to you, but I made some opinionated changes so am not sure if you would want them. Happy to give details if it helps, but the main one is that I made a docker wrapper for it.
I've tried multiple browsers and I cannot get the Modify modal to show or to access the dropdown to duplicate/delete etc. Can you investigate? Thanks!
Currently there exists no way to observe or edit existing requests.
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.