twitchdev / bot-commander Goto Github PK
View Code? Open in Web Editor NEWReact based frontend only extension sample that leverages Configuration Service
React based frontend only extension sample that leverages Configuration Service
It seems that this sample project is currently only built for shell-based OSes like Mac and Linux, but since it is one of the sample projects for the Extension Developer Rig which in turn only supports Windows and Mac this effectively limits the usefulness of this sample to Mac only. ("yarn cert" tries to run a .sh-script)
Is there any chance of adding Windows support for this sample project?
Hello! I am trying to run this project as one of my twitch extensions for learning, but I can't quite make it functional at all~
Here are my steps:
• Cloned the project
• Created an extension at twitch console
• Added a new project with Developer Rig with the created extension, using the bot-commander as the source
• Installed the extension in my twitch channel
• Clicked "Run Front-end" at Developer Rig
The application runs without errors, but the extension doesn't work at all.
I also made sure the base URI from the extension was localhost:8080 at twitch console. Am I missing something...? I also can't see any View at the Dev Rig.
OS: Windows
Thank you so much for your support
In ConfigCommand.js:16
On my system, fedora-27, the file is located in /etc/pki/tls/openssl.cnf (if that's the correct file). Altering bin/generate_cert.sh to point there allows "yarn cert" to run successfully.
]$ yarn cert
yarn run v1.16.0
$ ./bin/generate_cert.sh server
cat: /etc/ssl/openssl.cnf: No such file or directory
Generating a RSA private key
......++++
.++++
writing new private key to '/home/thomasmckay/code/roll20-twitch/boilerplate/bot-commander/bin/server.key'
-----
unable to find 'distinguished_name' in config
problems making Certificate Request
140677774706496:error:0E06D06C:configuration file routines:NCONF_get_string:no value:crypto/conf/conf_lib.c:273:group=req name=distinguished_name
* Generated server.key and server.crt files in local directory
* Please install and trust cert at conf/server.crt
mv: cannot stat 'server.crt': No such file or directory
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When the developers rig clones the git repo via the template process it doesn't completely work because twitch-ext.js is missing from the html templates which mean onContext and onAuth do not fire.
I have modified panel.html and config.html to include this line
<script src="https://localhost.rig.twitch.tv:3000/twitch-ext.js"></script>
and then the config panel loads (although configuration still doesn't load but i think that may be a dev-rig issue)
I also notice that the webpack is configured to use template.html to create these files but also doesn't include twitch-ext or get build as apart of the rig.
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.