-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Currently, namefaces in Botnak only show on the broadcaster's end, i.e. nobody else can see the namefaces in a channel but the broadcaster (unless they have added them locally).
I've created a website / server application where users can upload (or remove) their nameface to http://gmanserver.info/faces/nameface.php. They must connect with Twitch to do this, so user A can't modify the nameface of user B. The website provides a preview section for the new nameface, eliminating the problem of people having to re-add their nameface in Botnak multiple times until it looks right.
All added faces are saved onto the server (accessible from http://gmanserver.info/faces/namefaces/.png). A record for each user is also added to a MySQL database, where the url of their nameface is stored, as well as the channel permission level. Channel permission level (0-3) allows a user to pick whose namefaces will appear in their chat (everyone, subs+, mods+, broadcaster only). This setting can be changed from the main website.
For use in Botnak, users' data can be pulled from http://gmanserver.info/faces/getface.php?username=, which will return a JSON object with their unique ID, username, the URL to their nameface (JSON encoded), and their channel permission level.
Users are free to modify or remove their nameface, or update the channel permission level at any time from the main website (http://gmanserver.info/faces/nameface.php).