Skip to content

A web-based Death Counter that broadcasts random messages to a Twitch channel

License

Notifications You must be signed in to change notification settings

pkarjala/twitch-death-messages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A JavaScript tool for sending random death messages to chat, along with a count of the number of deaths.

Features

  • Just requires a single web page and works from your web browser.
  • Saves the current number of deaths and the channel name to local browser storage in JSON format.
  • Does NOT save connection information
  • Lightweight, just uses pure JavaScript for the core components

Sample messages

  • It is a shame that [username] died [count] [times] in a row.
  • [username] didn't learn to dodge [count] [times].
  • That looks like [username] felt the pain [count] [times].
  • Welp, [username] slipped and fell to their death [count] [times].
  • [username] was sliced in half [count] [times].
  • [count] [times] now, [username] has made a boo boo.
  • You have shown you know nothing [count] [times] over, [username]
  • [username], the cat of [count] lives
  • [username] fell [count] [times]...but isn't quite dead yet.
  • [username] has fled this mortal coil [count] [times]
  • ...and more to come!

Getting started

  1. Download this repository
  2. Open the index.html file in the web browser of your choice
  3. Register for a Twitch oAuth Token at https://twitchapps.com/tmi/
  4. Save the oAuth Token to safe place!
  5. Enter the Token, your Twitch Username, and the name of the Channel you want to connect to in the applicable boxes.
  6. Click [Connect] to connect to that channel's chat.
  7. Have fun!

Reporting issues / making suggestions

Please submit a new issue!

Technical notes

Messages are randomly generated using the following format in the messages array object:

  • [username] - The name of the channel being broadcast to, same as the Channel input
  • [count] - The current death count
  • [times] - A dynamically generated value of the word "time/times" depending on singular / plural output

External Libraries

Uses the TwitchJS library for connection to and communication with a Twitch chat channel.

License

MIT

This repository and its author are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Twitch, or any of its subsidiaries or its affiliates. The name "Twitch" as well as related names, marks, emblems and images are registered trademarks of Twitch.

About

A web-based Death Counter that broadcasts random messages to a Twitch channel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published