aleqsunder / discord-streams-announcer-bot

Allows you to announce the start of the stream on various streaming platforms in your channel: youtube, trovo, twitch, kick, vkplay, caffeine, goodgame, openrec, nuum
13 stars 4 forks source link
caffeine caffeine-bot caffeinetv discord-bot goodgame kick-bot-discord kick-com nodejs nuum openrec openrectv trovo twitch twitch-api twitch-bot vk vk-play youtube youtube-api

discord-streams-announcer-bot

“”“”“”
“”“”“”
“”“” ⠀⠀“” ⠀⠀

[EN]

Allows you to announce the start of your streams: Youtube, Trovo, Twitch, Kick, VkPlay, Caffeine, GoodGame, OpenRec and Nuum!

You can safely use this project and/or parts of it in your own projects\ To get started you need to install NodeJS and Yarn (optional), and then:

  1. Clone the repository
  2. yarn install (or npm install)
  3. Clone .env.example into .env, fill in
  4. Run node -r dotenv/config index
How to fill .env ## It is obligatory to fill in the fields for Discord bot, the other items - as needed\ If you only need YouTube or WASD, you can leave Twitch or Trovo fields blank ### Discord `DISCORD_API_KEY` - access key in [discord.developer](https://discord.com/developers/applications)\ `DISCORD_CHANNEL_ID` - ID of the discord channel where the webhook announcement should be, obtained by copying and pasting ### YouTube (optional) `YOUTUBE_API_KEY` - access key in [youtube.developer](https://developers.google.com/youtube/v3), you can specify several keys separated by commas, the interval of requests will adjust to the number of transferred keys\ `YOUTUBE_STREAMER_ID` - the ID of youtube-user, for example link `https://www.youtube.com/channel/UCTt1aYtL8sFGViCUSH07CVw`, where `UCTt1aYtL8sFGViCUSH07CVw` is that ID. Note that a link of the form `https://www.youtube.com/c/СЕРЕГАПИРАТ` is a dick because of the old Google+, you need exactly the ID, not the username ### Trovo (optional) `TROVO_CHANNEL_NAME` - trovo channel nickname, e.g. link `https://trovo.live/s/serega_pirat`, where `serega_pirat` is the same nickname ### Twitch (optional) `TWITCH_CLIENT_ID` - client_id from twitch develop\ `TWITCH_CLIENT_SECRET` - client_secret from twitch develop\ `TWITCH_CHANNEL_NAME` - the nickname of the twitch channel, for example the link `https://twitch.tv/serega_pirat` where `serega_pirat` is the same nickname ### Kick (optional) `KICK_CHANNEL_NAME` - the nickname of the kick-channel, for example a link `https://kick.com/serega-pirat15`, where `serega-pirat15` - the same nickname\ If you get the error `For error "Missing libgbm.so.1"` - run the command `sudo apt-get install libgbm-dev` ### VK PLAY (optional) `VKPLAY_CHANNEL_NAME` - the nickname of the vklive-channel, for example a link `https://vkplay.live/serega_pirat`, where `serega_pirat` - the same nickname ### CAFFEINE.TV (optional) `CAFFEINE_CHANNEL_NAME` - the nickname of the caffeine-channel, for example a link `https://www.caffeine.tv/serega_pirat`, where `serega_pirat` - the same nickname ### GOODGAME.RU (optional) `GOODGAME_CHANNEL_NAME` - the nickname of the goodgame-channel, for example a link `https://goodgame.ru/serega_pirat`, where `serega_pirat` - the same nickname ### OPENREC (optional) `OPENREC_CHANNEL_NAME` - the nickname of the openRec-channel, for example a link `https://www.openrec.tv/user/serega_pirat`, where `serega_pirat` - the same nickname ### Nuum (optional) `NUUM_CHANNEL_NAME` - the nickname of the nuum-channel, for example a link `https://nuum.ru/channel/serega_pirat`, where `serega_pirat` - the same nickname

[RU]

Позволяет анонсировать начало ваших стримов: Youtube, WASD, Trovo, Twitch, VkPlay, Caffeine, GoodGame, OpenRec и Nuum!

Вы можете спокойно использовать данный проект и/или его отдельные части в своих проектах\ Для начала работы необходимо установить NodeJS и Yarn (не обязательно), и следом:

  1. Клонировать репозиторий
  2. yarn install (или npm install)
  3. Клонировать .env.example в .env, заполнить
  4. Запустить node -r dotenv/config index
Как заполнить .env ## Обязательно необходимо заполнить поля для Discord бота, остальные пункты - по мере надобности\ Если вам нужен только YouTube или WASD, то поля Твич или Трово можно оставить пустыми ### Дискорд `DISCORD_API_KEY` - ключ доступа в [discord.developer](https://discord.com/developers/applications)\ `DISCORD_CHANNEL_ID` - ID дискорд канала, где должен быть webhook анонс, получается путём копирования и вставки ### YouTube (не обязательно) `YOUTUBE_API_KEY` - ключ доступа в [youtube.developer](https://developers.google.com/youtube/v3), можно указать несколько ключей через запятую, интервал запросов подстроится под количество переданных ключей\ `YOUTUBE_STREAMER_ID` - ID youtube-пользователя, например ссылка `https://www.youtube.com/channel/UCTt1aYtL8sFGViCUSH07CVw`, где `UCTt1aYtL8sFGViCUSH07CVw` - тот самый ID. Обращаю внимание, что ссылка вида `https://www.youtube.com/c/СЕРЕГАПИРАТ` - залупа из-за старых гугл+, нужен именно ID, а не имя пользователя ### Трово (не обязательно) `TROVO_CHANNEL_NAME` - никнейм трово-канала, например ссылка `https://trovo.live/s/serega_pirat`, где `serega_pirat` - тот самый никнейм ### Твич (не обязательно) `TWITCH_CLIENT_ID` - client_id из twitch develop\ `TWITCH_CLIENT_SECRET` - client_secret из twitch develop\ `TWITCH_CHANNEL_NAME` - никнейм twitch-канала, например ссылка `https://twitch.tv/serega_pirat`, где `serega_pirat` - тот самый никнейм ### Кик (не обязательно) `KICK_CHANNEL_NAME` - никнейм кик-канала, например ссылка `https://kick.com/serega-pirat15`, где `serega-pirat15` - тот самый никнейм\ Если выдаёт ошибку `For error "Missing libgbm.so.1"` - выполнить команду `sudo apt-get install libgbm-dev` ### ВК ПЛЕЙ (не обязательно) `VKPLAY_CHANNEL_NAME` - никнейм вкплей-канала, например ссылка `https://vkplay.live/serega_pirat`, где `serega_pirat` - тот самый никнейм ### CAFFEINE.TV (не обязательно) `CAFFEINE_CHANNEL_NAME` - никнейм caffeine-канала, например ссылка `https://www.caffeine.tv/serega_pirat`, где `serega_pirat` - тот самый никнейм ### GOODGAME.RU (не обязательно) `GOODGAME_CHANNEL_NAME` - никнейм goodgame-канала, например ссылка `https://goodgame.ru/serega_pirat`, где `serega_pirat` - тот самый никнейм ### OPENREC (не обязательно) `OPENREC_CHANNEL_NAME` - никнейм openRec-канала, например ссылка `https://www.openrec.tv/user/serega_pirat`, где `serega_pirat` - тот самый никнейм ### Nuum (не обязательно) `NUUM_CHANNEL_NAME` - никнейм nuum-канала, например ссылка `https://nuum.ru/channel/serega_pirat`, где `serega_pirat` - тот самый никнейм