This repository has been archived by the owner on Jun 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
688 lines (344 loc) · 13.2 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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
<!-- This is a static file -->
<!-- served from your routes in server.js -->
<!-- You might want to try something fancier: -->
<!-- html/nunjucks docs: https://mozilla.github.io/nunjucks/ -->
<!-- pug: https://pugjs.org/ -->
<!-- haml: http://haml.info/ -->
<!-- hbs(handlebars): http://handlebarsjs.com/ -->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- COMMON TAGS -->
<meta charset="utf-8" />
<title>Glitch Discord Bot Starter Kit</title>
<!-- Search Engine -->
<meta
name="description"
content="Build a Discord Bot on Glitch with this interactive install guide"
/>
<meta
name="image"
content="https://cdn.glitch.com/ca1b081c-b4c8-41bc-bb08-91d500baeab9%2Froboticon.png"
/>
<!-- Schema.org for Google -->
<meta itemprop="name" content="Glitch Discord Bot Starter Kit" />
<meta
itemprop="description"
content="Build a Discord Bot on Glitch with this interactive install guide"
/>
<meta
itemprop="image"
content="https://cdn.glitch.com/ca1b081c-b4c8-41bc-bb08-91d500baeab9%2Froboticon.png"
/>
<!-- Twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Glitch Discord Bot Starter Kit" />
<meta
name="twitter:description"
content="Build a Discord Bot on Glitch with this interactive install guide"
/>
<meta name="twitter:site" content="@glitch" />
<meta
name="twitter:image:src"
content="https://cdn.glitch.com/ca1b081c-b4c8-41bc-bb08-91d500baeab9%2Froboticon.png"
/>
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
<meta name="og:title" content="Glitch Discord Bot Starter Kit" />
<meta
name="og:description"
content="Build a Discord Bot on Glitch with this interactive install guide"
/>
<meta
name="og:image"
content="http://cdn.glitch.com/ca1b081c-b4c8-41bc-bb08-91d500baeab9%2Froboticon.png"
/>
<meta name="og:url" content="http://starter-botkit-discord.glitch.me/" />
<meta name="og:type" content="website" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- import the webpage's stylesheet -->
<link
href="https://unpkg.com/[email protected]/css/nes.min.css"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css?family=Press+Start+2P"
rel="stylesheet"
/>
<link rel="stylesheet" href="/style.css" />
<!-- import the webpage's client-side javascript file -->
<script src="/client.js" defer></script>
</head>
<body>
<header>
<h1>Glitch Discord Bot Starter Kit</h1>
<h2>Setup <span class="domain-name-title"></span>!</h2>
</header>
<main>
<section>
<div class="nes-balloon from-left">
<p>
Hooray! You've finished the <a href="/install">install guide</a> and
are ready to start setting your bot up. If you haven't watched it
already, our
<a href="https://www.youtube.com/watch?v=uv0hcWw7jdA"
><img
src="https://cdn.glitch.com/ca1b081c-b4c8-41bc-bb08-91d500baeab9%2Fyoutube-square.svg?v=1565898488946"
class="pixel-icon"
/>
intro video</a
>
gives an overview of what we'll be doing.
</p>
</div>
</section>
<section>
<div class="nes-container is-light with-title">
<h2 class="title">Add your bot to a Discord server</h2>
<p>Now you need two things:</p>
<ul class="nes-list is-disc">
<li>A Discord Server</li>
<li>
The
<a
href="https://support.discordapp.com/hc/en-us/articles/214836687-Role-Management-101"
target="new"
>"Manage Server"</a
>
permission - if you created the server you probably already have
it
</li>
<li>
A special link called a "Oauth URL"- you can visit this link and
select what server you want to add the bot to
</li>
</ul>
<div class="message-list">
<div class="message -left">
<i class="nes-bcrikko"></i>
<!-- Balloon -->
<div class="nes-balloon from-left">
But I don't have a Discord Server :(
</div>
</div>
<div class="message -right">
<!-- Balloon -->
<div class="nes-balloon from-right">
Don't worry! You can create your own.
<a
href="https://support.discordapp.com/hc/en-us/articles/204849977-How-do-I-create-a-server-"
target="new"
>Click here to learn how.</a
>
</div>
<i class="nes-bcrikko"></i>
</div>
<div class="message -left">
<i class="nes-bcrikko"></i>
<!-- Balloon -->
<div class="nes-balloon from-left">
Sweet I just created my own server for bot testing! Now what?
</div>
</div>
<div class="message -right">
<!-- Balloon -->
<div class="nes-balloon from-right">
NIIIICE! If your bot is set up right your Oauth URL should show
up below!
</div>
<i class="nes-bcrikko"></i>
</div>
</div>
<div class="info-box">
<div
id="no-client-found"
class="nes-container is-rounded with-title"
>
<p class="title">Oauth URL</p>
<div class="nes-badge"><span class="is-error">error</span></div>
I tried to get you the URL but I couldn't because something is
wrong. Check out the
<a href="/install">Install guide to get it set up</a>
</div>
</div>
<div id="client-found">
<h3>Bot Authorization URL</h3>
<p>
When you visit this URL it will give you the option to add your
bot to the server
</p>
<div class="nes-field">
<label for="oauth-url">Bot authorization URL</label>
<input
readonly
class="copyurl nes-input"
id="oauth-url"
type="text"
value=""
/>
</div>
<div class="buttons">
<a
href=""
id="oauth-url-go"
class="nes-btn is-success"
target="new"
>Go</a
>
</div>
</div>
</div>
</section>
<section>
<div class="nes-container is-light with-title">
<h2 class="title">
Set up Uptime Robot- Optional but highly recommended!
</h2>
<p>
As you learned in the <a href="/install">install</a> guide we need
Uptime Robot to keep your Discord bot awake all day and all night.
</p>
<div class="message-list">
<div class="message -left">
<i class="nes-bcrikko"></i>
<!-- Balloon -->
<div class="nes-balloon from-left">
I'll help you get Uptime Robot working
</div>
</div>
</div>
<div class="info-box">
<div id="uptime-not-set-up" class="nes-container is-rounded">
<a href="https://uptimerobot.com/dashboard#" target="new"
>Head to the Uptime Robot Dashboard and create a monitor with
the following settings</a
>
<ul class="nes-list is-circle">
<li>Monitor type: HTTP(s)</li>
<li>Friendly Name: <span class="domain-name-title"></span></li>
<li>
URL: https://<span class="domain-name-title"></span>.glitch.me
</li>
<li>Monitoring Interval: Every 5 minutes</li>
</ul>
<button
onclick="monitorSetup()"
id="uptime-robot-button"
class="nes-btn is-success"
>
Create my Uptime Robot monitor!
</button>
</div>
</div>
</div>
</section>
<section>
<div class="nes-container is-light with-title">
<h2 class="title">Test Your Bot</h2>
<p>
Your Discord Bot is now ready to test! To test go to the Discord
Server. Start typing @ and then the name of your bot (you set up the
name in the <a href="/install">install guide</a> when you created n
<a href="https://discordapp.com/developers/applications/"
>Discord App</a
>). You should see your bot in the options with a little green dot
(which indicates it's online).
</p>
<img
src="https://cdn.glitch.com/ca1b081c-b4c8-41bc-bb08-91d500baeab9%2Ftest-botkit-starter.png?v=1565648161097"
class="img-fluid"
/>
<p class="spaced">
Here is the fun part. Now once you've selected to mention your bot,
type "!thanks" and the name of someone you appreciate on your
server.
</p>
<img
src="https://cdn.glitch.com/ca1b081c-b4c8-41bc-bb08-91d500baeab9%2F%23general%202019-08-12%2017-24-44.png?v=1565648717387"
class="img-fluid"
/>
<p class="spaced">
Your bot should respond with a message tagging that person to let
them know how you feel.
</p>
<div class="nes-container is-dark with-title">
<p class="title">Not working?</p>
<p>
Oh no! Head to our
<a href="https://support.glitch.com/c/discord-help"
>Discord Support Forum</a
>
to get help.
</p>
</div>
</div>
</section>
<section>
<div class="nes-container is-light with-title">
<h2 class="title">Security Tips!</h2>
<p>Here are some tips for keeping your bot secure:</p>
<div class="info-box">
<div class="nes-container is-rounded is-dark">
<p>
The only place you should copy/put your Discord API token is in
<code>.env</code>
</p>
</div>
</div>
<div class="info-box">
<div class="nes-container is-rounded is-dark">
<p>
Your code is public (anyone can see and copy it EXCEPT for
what's in <code>.env</code>), unless you make your Glitch app
<a href="https://glitch.com/help/privateproject/">private</a>.
</p>
</div>
</div>
<div class="info-box">
<div class="nes-container is-rounded is-dark">
<p>
If you add
<a
href="https://glitch.com/help/how-do-i-invite-collaborators-to-edit-my-project/"
>collaborators</a
>
to your project they will be able to see your .env and copy the
code. Only add them if you trust them!
</p>
</div>
</div>
<i class="snes-logo"></i>
<div class="info-box">
<div class="nes-container is-rounded is-dark">
<p>
If you remove a collaborator or accidentally share your token,
you should also reset your Discord API token by going to
<a href="https://discordapp.com/developers/applications"
>The Discord Developer portal</a
>, clicking on the bot's application, heading to the "bot"
section and clicking "regenerate".
</p>
</div>
</div>
</div>
</section>
<section>
<div class="nes-container is-light with-title">
<h2 class="title">Code Your Bot</h2>
<i class="nes-jp-logo"></i>
<p>
Head to your project's
<a href="" id="readme-file-link">Readme.md</a> for info about the
how the code works and how to turn it into the bot of your dreams!
</p>
</div>
</section>
</main>
<footer>Made with <a href="https://glitch.com">Glitch</a>!</footer>
<!-- include the Glitch button to show what the webpage is about and
to make it easier for folks to view source and remix -->
<div class="glitchButton" style="position:fixed;top:20px;right:20px;"></div>
<script src="https://button.glitch.me/button.js"></script>
</body>
</html>