Git Product home page Git Product logo

deno-twitch-stream-alert's Introduction

Get alerts in Discord from Twitch

a discord notifications

Sends an alert using Twitch webhooks to a Discord channel

Usage

  1. Fork this repo
  2. If you want to customize the alert message, create a file called message.txt in the root folder. Ex: Hey @everyone, I'm live right now
  3. Copy .env.example to .env and update its content.
    • You can get CLIENT_SECRET and CLIENT_ID from Twitch dev. Create a new application here Twitch Register Application
    • To get ACCESS_TOKEN you need the Twitch CLI. Check the official guide Twitch CLI or just download it from GitHub https://github.com/twitchdev/twitch-cli/releases
    • After downloading/installing the Twitch CLI, run ./twitch token and it will offer to configure it self. Enter your CLIENT_SECRET and CLIENT_ID when prompted.
    • For WEBHOOK_SECRET any string between 10 and 100 characters will do.
    • For DISCORD_CHANNEL_WEBHOOK_URL we will need to create a Discord channel webhook. Go to the channel you want to send notifications, and click edit and go to Integrations. Click view webhooks in the Webhooks sections and click New Webhook. You can customize your Bot and click Copy Webhook URL.
  4. Create a project in Deno deploy and enter all the variables from the .env don't worry about CALLBACK_URL we will get it after.
  5. Copy your deno deploy URL from Overview tab (the smallest .deno.dev URL)
  6. Get the streamer user id (Google it for now, Coming soon)
  7. Run deno task user STREAMER_ID

deno-twitch-stream-alert's People

Contributors

omar2205 avatar

Watchers

 avatar  avatar

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.