dlive tts chat widget
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.5 KiB

2 years ago
Vampi's DLive TTS
=================
Installing
----------
2 years ago
You'll need [Git](https://git-scm.com/download/win) and [NodeJS](https://nodejs.org/en/download/).
2 years ago
Make sure they are both in your `PATH`.
2 years ago
First, clone the repository
```sh
git clone --recursive http://git.vampi.tech/vampi/tts.git
2 years ago
```
Open a command prompt, go to the folder where you unpacked it, and type:
```sh
npm install
cd static/streamchat
npm install
1 year ago
cd trovo.js
npm install
cd ..
cd ..
2 years ago
```
This installs requirements for the tts and the
[streamchat submodule](http://git.vampi.tech/vampi/streamchat),
which is what connects to DLive.
1 year ago
Next, open `config.js.example` and save it as config.js. Edit the values in there to fit your needs.
2 years ago
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`