|
1 month ago | |
---|---|---|
static | 1 month ago | |
streamchat@246ce64aca | 2 months ago | |
.gitignore | 2 months ago | |
.gitmodules | 6 months ago | |
README.md | 2 months ago | |
config.js.example | 2 months ago | |
index.js | 1 month ago | |
package.json | 6 months ago | |
songprovider.js | 6 months ago | |
soundcloud.js | 6 months ago | |
template.sqlite | 6 months ago | |
tts.sublime-project | 2 months ago | |
voices.json | 6 months ago | |
youtube.js | 1 month ago |
You'll need Git and NodeJS.
Make sure they are both in your PATH
.
First, clone the repository
git clone --recursive http://git.vampi.tech/vampi/tts.git
Open a command prompt, go to the folder where you unpacked it, and type:
npm install
cd streamchat
npm install
cd ..
This installs requirements for the tts and the streamchat submodule, which is what connects to DLive.
Next, open config.js.example
and save it as config.js.
Fill in your Blockchain Username in the streamer
field. You can find this
by going to the Earnings tab on dlive, the one below the chest.
If you have a DLive bot account, fill in botUsername
and botPassword
,
but if that fails, fill in the dLiveAuthToken
, which you can see in the
Network tab of the Developer Tools of your browser, in the authorization:
header, with each request sent to graphigo.prd.dlive.tv
, when you are
logged in as the bot.
Now edit the sounds config, or just replace the existing ones in static/sounds
.
Now you should be able to run in the same terminal:
node index.js
Now point your browser to http://localhost:3080
to see it working,
then add the same URL in OBS as a browser source.
node index.js
Upon startup, the bot will send the message, if any, in the config setting hello
.
Press CTRL+C, don't just close the window, as the bot can be configured to have a goodbye message in the config setting goodbye
.
With your streamer account, type one of the following:
Ban2
Ban
Diamond
ExtendSub2
ExtendSub
Follow
GiftSub
GiftSubReceive
Host
IceCream
IceCreams
Lemon
Lemons
Mod
Ninjaghini
Ninjet
Subscription
SubStreak
TCValue
Timeout
ValueUpdated