-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
302 lines (280 loc) · 14.6 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#" data-bs-theme="dark">
<head>
<meta charset="utf-8" />
<title>About | 0weebs</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta
name="description"
content="0weebs is a Twitch chat bot that will timeout anyone that posts a weeb emote in your chat. You'll have 0 weebs in your chat after you add this bot :)"
/>
<meta name="keywords" content="twitch, chat, bot, 0weebs" />
<meta property="og:title" content="About | 0weebs" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://zero.chat.vote" />
<meta property="og:image" content="https://zero.chat.vote/pics/nam.png" />
<meta property="og:locale" content="en_US" />
<meta
property="og:description"
content="0weebs is a Twitch chat bot that will timeout anyone that posts a weeb emote in your chat. You'll have 0 weebs in your chat after you add this bot :)"
/>
<link rel="apple-touch-icon" sizes="152x152" href="/pics/icon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/pics/icon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/pics/icon/favicon-16x16.png" />
<link rel="manifest" href="/pics/icon/site.webmanifest" />
<link rel="mask-icon" href="/pics/icon/safari-pinned-tab.svg" color="#ffc40d" />
<link rel="shortcut icon" href="/pics/icon/favicon.ico" />
<meta name="msapplication-TileColor" content="#ff62bd" />
<meta name="msapplication-config" content="/pics/icon/browserconfig.xml" />
<meta name="theme-color" content="#ffffff" />
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/icons.css" />
<link rel="stylesheet" href="/css/0weebs.min.css" />
</head>
<body>
<nav class="navbar navbar-expand-lg bg-body-tertiary mb-2">
<div class="container-fluid">
<a class="navbar-brand notranslate" href="#"><img src="/pics/nam.png" alt="nam" style="height: 30px; width: 30px" class="d-inline-block align-top" />0weebs</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/"><i class="material-icons notranslate">info</i>About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/commands.html"><i class="material-icons notranslate">smart_toy</i>Commands</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/api/" target="_blank" rel="noopener noreferrer"><i class="material-icons notranslate">api</i>API</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/settings.html"><i class="material-icons notranslate">settings</i>Settings</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-xl-2"></div>
<div class="col-xl-8">
<div class="row row-cols-1 row-cols-md-4 g-4" id="infocards">
<div class="col">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">About</h5>
<p class="card-text">
This is a Twitch chat bot that will timeout anyone that posts a weeb emote in your chat. <img src="/pics/nam.png" alt="nam" height="30" /><br />You'll have 0 weebs in
your chat after you add this bot <img src="/pics/4head.png" alt="4head" height="30" />
</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">How to add the bot to your channel</h5>
<ul class="list-unstyled">
<li>
<ul>
<li>Type <kbd>==join</kbd> in the <a href="https://www.twitch.tv/popout/0weebs/chat">bot's chat.</a></li>
<li>Type <kbd>/mod 0weebs</kbd> in your chat to mod the bot.</li>
<li>Done :)</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">Bot stats</h5>
<div id="botstats">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">Contact info</h5>
<p class="card-text">
Bot by <a href="https://www.twitch.tv/badoge">badoge</a> :) <br />If you find any issues or if you have suggestions or questions, you can contact me: <br /><a
href="https://www.twitch.tv/nam______________________"
>in this chat</a
>
<br />or on <a href="https://discord.gg/eF54kvd">discord</a> <br />or by <a href="mailto:[email protected]">email</a>
</p>
</div>
</div>
</div>
</div>
<div class="row" id="faqcard">
<div class="col">
<div class="card">
<div class="card-body">
<h5 class="card-title">FAQ</h5>
<ul class="list-group list-group-flush">
<li class="list-group-item">
How do I remove the bot from my channel?
<ul>
<li>Type <kbd>==leave</kbd> in your chat.</li>
</ul>
</li>
<li class="list-group-item">
How does the bot work?
<ul>
<li>
When a user posts a message in chat, Twitch sends the message text and the emotes in separate fields, the bot checks the emote field only and not the message text
like every other moderation bot, so it only bans users that actually have the emote. <br />Because of the way the bot checks for emotes, it's only able to
accurately detect Twitch emotes, BTTV/FFZ/7TV emotes can be banned using the <kbd>==banphrase</kbd> command.
</li>
</ul>
</li>
<li class="list-group-item">
Which emotes are banned?
<ul>
<li>You can check the list of banned emotes using the <a href="https://zeroapi.chat.vote/list" target="_blank" rel="noopener noreferrer">API</a></li>
<ul>
<li>The list consists of emote prefixes mostly and not individual emotes so it is not indicative of the total number of banned emotes.</li>
</ul>
</ul>
</li>
<li class="list-group-item">
How do you find these emotes?
<ul>
<li>
Most emotes are subbmited by the major contributors <a href="https://www.twitch.tv/npas76" target="_blank" rel="noopener noreferrer">npas76</a> &
<a href="https://www.twitch.tv/viology" target="_blank" rel="noopener noreferrer">viology</a>
</li>
<li>Users can report emotes using ==suggest</li>
<li>I frequently add emotes that I randomly see while watching any stream :)</li>
</ul>
</li>
<li class="list-group-item">
Why is the bot banning a non-weeb emote?
<ul>
<li>Some channels might have some non-weeb emotes that get timed out because the whole emote prefix is banned.</li>
</ul>
</li>
<li class="list-group-item">
Why is the bot not banning a certain weeb emote?
<ul>
<li>If you find a weeb emote that is not on the list, you can use <kbd>==suggest</kbd> to report it.</li>
<li>You can also add the emote to your channel's ban list using the method below.</li>
</ul>
</li>
<li class="list-group-item">
How can I ban an emote?
<ul>
<li>
If you want to ban an emote that is not on the global emote list then you can use the <kbd>==addprefix</kbd>, <kbd>==addsuffix</kbd> or
<kbd>==addemote</kbd> commands to add/remove a custom prefix/suffix/emote (Twitch emotes only, for BTTV/FFZ/7TV emotes use <kbd>==banphrase</kbd> instead)
</li>
<li>
<kbd>==addprefix</kbd> will make the bot ban any emote that starts with the prefix that you provide. Example: <kbd>==addprefix forsen</kbd> will make the bot ban
any emote that starts with "forsen"
</li>
<li>
<kbd>==addsuffix</kbd> will make the bot ban any emote that ends with the suffix that you provide. Example: <kbd>==addsuffix Dance</kbd> will make the bot ban any
emote that ends with "Dance"
</li>
<li><kbd>==addemote</kbd> will make the bot ban a single emote. Example: <kbd>==addemote Kappa</kbd> will make the bot ban the "Kappa" emote</li>
<li>
<kbd>==banphrase</kbd> will make the bot ban a phrase. Example: <kbd>==banphrase AYAYA</kbd> will make the bot ban anyone that types a message that contains "ayaya"
in any way
</li>
</ul>
</li>
<li class="list-group-item">
Can I use the bot to ban other emotes?
<ul>
<li>You can also use the <kbd>==mainlist</kbd> command to disable the global banphrases and use your own custom banphrases only.</li>
</ul>
</li>
<li class="list-group-item">
How can I change the timeout length?
<ul>
<li>
You can use the <kbd>==length</kbd> command to change the timeout length, range is from 0 to 1209600. <br />0 will just delete the message without a timeout.
<br />You can also use <kbd>==length perma</kbd> to permanently ban anyone that uses a banned emote.
</li>
</ul>
</li>
<li class="list-group-item">
Why did the bot leave my channel?
<ul>
<li>There are a couple reasons why the bot might leave your channel:</li>
<ul>
<li>You or one of your mods banned the bot.</li>
<li>You got suspended from Twitch.</li>
<li>You did not mod the bot.</li>
</ul>
</ul>
</li>
<li class="list-group-item">
What programming language is the bot written in?
<ul>
<li>JavaScript (Node.js)</li>
</ul>
</li>
<li class="list-group-item">
Where is the bot hosted?
<ul>
<li>The bot is hosted on AWS US West (Oregon), which is the same region that Twitch uses.</li>
</ul>
</li>
<li class="list-group-item">
Is the bot open source?
<ul>
<li>
<img
src="/pics/yeahbut.gif"
alt="yeah but open source software is like a 3rd party thing and I don't know"
title="yeah but open source software is like a 3rd party thing and I don't know"
height="40"
class="d-inline-block align-top"
/>
</li>
</ul>
</li>
<li class="list-group-item">
More questions?
<ul>
<li>Use one of the contact methods listed above or use the <kbd>==suggest</kbd> command to ask me anything.</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-2"></div>
</div>
</div>
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.bundle.min.js"></script>
<script>
window.onload = async function () {
let requestOptions = {
method: "GET",
redirect: "follow",
};
let response = await fetch(`https://zeroapi.chat.vote/stats`, requestOptions);
let stats = await response.json();
document.getElementById("botstats").innerHTML = `Connected to ${stats.stats.channels} channels<br>
${stats.stats.list.replace("suffixes", "<br>suffixes").replace("emotes", "<br>emotes")}<br>
RAM usage: ${stats.stats.ramUsage}MB<br>
Bot uptime: ${stats.stats.botUptime}<br>
Server uptime: ${stats.stats.serverUptime}<br>`;
};
</script>
</body>
</html>