Discord Twitch Notifier is a mini service for creating messages on discord for new streams on twitch or changing games.
To install Twitch Notifier make sure you have nodejs installed with npm or yarn.
Clone with HTTPS: https://github.com/Sociant/Discord-Twitch-Notifier.git
Clone with SSH: git@github.com:Sociant/Discord-Twitch-Notifier.git
Run npm install
or yarn install
Fill out the contents of the given config.js file
Field | Description | Values | Example |
---|---|---|---|
botToken | Token for discord bot | Create an application here | |
botCommand | Command name for discord | testbot | |
clientID | Twitch Application Client ID | Create an application here | |
refreshInterval | Refresh interval for looking up streamer status in ms | 1000 * 30 | Every minute: 1000 * 60 |
Open a terminal and run the command npm start
or yarn start
. You can use node index.js
as well.
Now you can invite your bot to a discord and configure it. For all available commands you can use your botCommand with an exclamation as prefix. (e.g. !twitchbot
)
Sociant Hub is released under the Apache-2.0 License