Coder Social home page Coder Social logo

aleqsunder / discord-streams-announcer-bot Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 4.0 84 KB

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

JavaScript 100.00%
discord-bot youtube youtube-api trovo twitch twitch-api twitch-bot caffeine caffeinetv vk

discord-streams-announcer-bot's Introduction

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
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, 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
DISCORD_CHANNEL_ID - ID дискорд канала, где должен быть webhook анонс, получается путём копирования и вставки

YouTube (не обязательно)

YOUTUBE_API_KEY - ключ доступа в youtube.developer, можно указать несколько ключей через запятую, интервал запросов подстроится под количество переданных ключей
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 - тот самый никнейм

discord-streams-announcer-bot's People

Contributors

aleqsunder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discord-streams-announcer-bot's Issues

Не находит discord.js в файлах его тоже нету

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'discord.js' imported from /home/dev/discord-streams-announcer-bot/extends/js/announcer-bot.js
at new NodeError (node:internal/errors:393:5)
at packageResolve (node:internal/modules/esm/resolve:860:9)
at moduleResolve (node:internal/modules/esm/resolve:909:20)
at defaultResolve (node:internal/modules/esm/resolve:1124:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36) {
code: 'ERR_MODULE_NOT_FOUND'

Kick Problem

Initialization
[Youtube] You didn't fill in the channel name
[Trovo] Trying to get a status of channel FRANkiller13
[Twitch] Trying to get a status of channel FRANkiller13
[VK PLAY] You didn't fill in the channel name
[Caffeine] You didn't fill in the channel name
[GOODGAME] You didn't fill in the channel name
[Kick] Trying to get a status of channel FRANkiller13
[Trovo] Streamer offline
[Twitch] Session restored
[Twitch] Trying to get a status of channel FRANkiller13
[Twitch] Streamer offline
[Kick] puppetear connection closed
[Kick] SyntaxError: Unexpected token 'k', "kick.com
V"... is not valid JSON

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.