A simple to use Harmony Extension that notifies you, when your favorite streamers go live!

Overview

banner workflow_codeql workflow_deno
THE Twitch Extension for your Deno-based Harmony Discord Bot

  • Notifies you if your favorite streamers go live

Usage

In order to use this extension it is crucial to create a .env file in the root directory of your Harmony bot. Within that file you need to include your client id and auth token you got from Twitch:

TWITCH_CLIENT_ID=
TWITCH_AUTH_TOKEN=

Example

A minimal example of using this extension:

import { CommandClient, Intents } from 'https://deno.land/x/harmony/mod.ts'
import { TwitchExtension } from 'https://deno.land/x/twitch-harmony/mod.ts'

const client = new CommandClient({
  prefix: '!'
})

// load the extension
client.extensions.load(TwitchExtension)

client.on('ready', () => {
  console.log(`Ready! User: ${client.user?.tag}`)
})

client.connect('mysecrettoken123', Intents.GuildMembers)

Testing

Tests are provided, so you are more than welcome to test this module with your own Twitch Credentials by running:

deno test -A --unstable
You might also like...

Write "hello world" in your native language, code "hello world" in your favorite programming language!

Hello World, All languages! 🌎 📌 Write "hello world" in your native language, code "hello world" in your favorite language! #hacktoberfest2022 How to

Dec 13, 2022

A simple To-do app project made using JavaScript ES6 and Webpack - Microverse. You can add, remove, check tasks, and remove all the tasks that were done at the same time. Feel free to see the live version, if you like it please give it a star!

To Do List a to do list javascript app buit using webpack and es6. Built With HTML CSS JavaScript Wepack Live Demo (if available) Live Demo Link Getti

Dec 17, 2022

A hub of all Marvel comics featuring your favorite heroes created with NextJS.

A hub of all Marvel comics featuring your favorite heroes created with NextJS.

A hub of all Marvel comics featuring your favorite heroes created with NextJS. marvel-hub.vercel.app Stack Front-end: NextJs, Jest, Styled Components

May 1, 2022

Find your new favorite Scratch service.

Welcome to scratch-explorer 👋 Like ocular and ScratchStats? You'll love some lesser-known sites like Itinerary and Aviate. Just browse the collection

Oct 3, 2022

Browse a list of your favorite movies and tv shows on the Steam-It Movie Database.

Browse a list of your favorite movies and tv shows on the Steam-It Movie Database.

Preview Desktop view Stream-It The website allows users to browse a list of movies, like a movie, view and add comments to a movie Built With HTML and

Sep 30, 2022

🏆 ETHAmsterdam 2022 Finalist 👐 Support your favorite projects with yield

🏆 ETHAmsterdam 2022 Finalist     👐 Support your favorite projects with yield

Yieldgate Yield Gate is a new monetisation tool for anyone to start receiving donations, or to support their favourite public goods projects, creators

Dec 15, 2022

🏎See how your favorite F1 team is progressing in the Constructors Championship

🏎See how your favorite F1 team is progressing in the Constructors Championship

F1 Championship Stats 🏎 See how your favorite F1 team is progressing in the Constructors Championship using the PlanetScale serverless driver for Jav

Dec 20, 2022

Readavocado obsidian plugin to sync your favorite highlights.

Readavocado Sync Plugin This plugin automatically export your Readavocado highlights into your Obsidian vault. Usage Install the Readavocado Sync Plug

Oct 31, 2022
Comments
  • watchStreamer refactor

    watchStreamer refactor

    Current coverage:

    • watchStreamer.ts...54.023% (47/87)
    • mod.ts....................no tests
    • utility functions.......100%

    Refactoring of watchStreamer may be required in order to reach full coverage.

    Originally posted by @ra237 in https://github.com/ra237/twitch-harmony/issues/11#issuecomment-1062660865

    refactor 
    opened by ra237 1
  • getRoleId

    getRoleId

    https://github.com/ra237/twitch-harmony/blob/df965c2f922549aca8f3d975573eef2323174bd9/src/commands/watchStreamer.ts#L83-L88 Create a similar method for roleId.

    refactor 
    opened by ra237 0
  • Refactor current state

    Refactor current state

    • [x] Create dir for sub-commands
    • [x] Extract sub-commands from mod.ts into dir
    • [x] Create dir for types
    • [x] Extract TwitchChannel type from mod.ts into dir
    • [x] Create dir for tests
    • [x] Move current init test into dir

    Folder structure should look like this: | src _| commands _| types | test mod.ts ...

    refactor 
    opened by ra237 0
Releases(v0.1.1)
Owner
null
Save your favorite GitHub Repos/Profiles Live

Save your favorite GitHub Repos/Profiles Live Getting Started by Fork and clone this repository or simply git clone https://github.com/ttran293/useful

Thanh Nam Tran 3 May 2, 2022
A jQuery plugin that works in harmony with animate.css in order to enable animations only when content comes into view.

jQuery AniView A jQuery plugin that works in harmony with animate.css in order to enable animations only when content comes into view. Now supports v4

Jonathan James Cosgrove 216 Sep 10, 2022
A web app which help you to save you a list of your favorite books, they will be saved on your local storage to never loose them even if you close the page. Built wiht JavaScript

Awesome Books In this project I build a page to save a list of your favorites books, you can add new books, delete it and they will be saved in the lo

Williams Colmenares 9 Dec 17, 2022
If you want to know more about your favorite TV show then you've come to the right place!

Ultimate Show Guide We want to introduce you this web page that will help you to manage all your favourite TV series from place. ??️ Desktop version H

William Morales 6 Jun 23, 2022
This project is a single-page application (SPA) about Booklist in which you can add your favorite books.

AWESOME BOOKS This website Awesome Books Library provides users a convenient way to keep track of their books or reading lists. Users can add and remo

Omar Salem 10 Feb 25, 2022
A list of EVM-based chains that also allows you to add chains to your favorite Web3 wallet

A list of EVM-based chains that also allows you to add chains to your favorite Web3 wallet. An alternative to the closing chainlist.org

Frederik Bolding 108 Jan 5, 2023
Cryptostat is a Node.js based CLI that gets you the real-time stats of your favorite cryptocurrency.

Cryptostat-CLI Cryptostat is a Node.js based CLI that gets you the real-time stats of your favorite cryptocurrency. Installation Use the npm package m

Kunal Rohitas 5 Dec 15, 2022
Awesome Books project with ES6 is an application that was built using Vanilla JavaScript with ES6 features like using arrow functions. This application allows you to keep records of your favorite books.

Javascript Project Awesome Books with ES6 Using Javascript to create a simple Awesome Books project. Populating the books list and then removing one b

Ghazanfar Ali 8 Sep 28, 2022
Less clicking, more creating. Navigate to your favorite actions on the websites you love with just one click.

Navigate to your favorite actions on the websites you love with just one click Web https://irtaza9.github.io/awesome-shortcuts/ Available Shortcuts Go

Irtaza Hussain 9 Aug 25, 2022
A SPW (Single Page Website) that can track your favorite books on your browser! Made with ES6 modules,JavaScript, HTML 5 and CSS 3.

awesome-books It is a project for Microverse's JavaScript Module to be done using pair-programming. Desktop Version Mobile Version In this website you

TOFANA SILVIA 10 Aug 22, 2022