|
|
|
Vampi's DLive TTS
|
|
|
|
=================
|
|
|
|
|
|
|
|
Installing
|
|
|
|
----------
|
|
|
|
|
|
|
|
You'll need [Git](https://git-scm.com/download/win) and [NodeJS](https://nodejs.org/en/download/).
|
|
|
|
Make sure they are both in your `PATH`.
|
|
|
|
|
|
|
|
First, clone the repository
|
|
|
|
|
|
|
|
```sh
|
|
|
|
git clone --recursive http://git.vampi.tech/vampi/tts.git
|
|
|
|
```
|
|
|
|
|
|
|
|
Open a command prompt, go to the folder where you unpacked it, and type:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm install
|
|
|
|
cd static/streamchat
|
|
|
|
npm install
|
|
|
|
cd trovo.js
|
|
|
|
npm install
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
```
|
|
|
|
|
|
|
|
This installs requirements for the tts and the
|
|
|
|
[streamchat submodule](http://git.vampi.tech/vampi/streamchat),
|
|
|
|
which is what connects to DLive.
|
|
|
|
|
|
|
|
Next, open `config.js.example` and save it as config.js. Edit the values in there to fit your needs.
|
|
|
|
|
|
|
|
Now you should be able to run in the same terminal:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
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.
|
|
|
|
|
|
|
|
Starting
|
|
|
|
--------
|
|
|
|
|
|
|
|
```sh
|
|
|
|
node index.js
|
|
|
|
```
|
|
|
|
|
|
|
|
Upon startup, the bot will send the message, if any, in the config setting `hello`.
|
|
|
|
|
|
|
|
Stopping
|
|
|
|
--------
|
|
|
|
|
|
|
|
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`.
|
|
|
|
|
|
|
|
Testing events
|
|
|
|
--------------
|
|
|
|
|
|
|
|
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`
|