-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (30 loc) · 1.23 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Death Messages</title>
<meta name="description" content="Death Messages">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Death Messages</h1>
<p>Sends a random message to the chat channel when the player dies</p>
<p>Please see the JS console in your browser for basic functionality.</p>
<p>Provide your token, username, and channel. You can generate a token here: <a href="https://twitchapps.com/tmi/">https://twitchapps.com/tmi/</a></p>
<div>
<label for="token">Token:</label><input id="token"><br>
<label for="username">Username:</label><input id="username"><br>
<label for="channel">Channel:</label><input id="channel"><br>
</div>
<div>
<button id="connect" onclick="connectToTwitch();">Connect</button>
<button id="awesome" onclick="sendDeathMessage();">Click: increment Death Count & send Death Message</button>
<button id="reset" onclick="resetCount(localStoreNameValue);">Reset Count</button>
</div>
<div>
Death Count is: <span id="deathcount"></span>
</div>
<script src="https://unpkg.com/twitch-js@>2.0.0-beta/dist/twitch-js.js"></script>
<script src="death-messages.js"></script>
</body>
</html>