Just some notes and references for myself.
- In bash, you can access your
C:\drive via/mnt/c/ ~=C:\Users\MLM\AppData\Local\lxss\home\mlmand is different from your Windows user directoryC:\Users\MLM
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # pylint: disable=invalid-name | |
| """Forward messages from twitch chat to discord chat or the other way around""" | |
| #--------------------------------------- | |
| # Libraries and references | |
| #--------------------------------------- | |
| import codecs | |
| import json | |
| import os |
| // Based on inspiration from some conversation in WeAllJS | |
| // See wealljs.org for more info on the community! | |
| // This is assuming a plain JS object which is why it's not using for-of, since | |
| // plain objects aren't iterable | |
| function objectPromiseAll(baseObject) { | |
| return Promise.all(Object.values(baseObject)).then((resolvedValues) => { | |
| const resolvedObject = {}; | |
| Object.keys(baseObject).forEach((key, index) => { |
| { | |
| "mockup": { | |
| "controls": { | |
| "control": [ | |
| { | |
| "ID": "1", | |
| "typeID": "Arrow", | |
| "zOrder": "1", | |
| "w": "36", | |
| "h": "109", |