-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
206 lines (183 loc) · 5.19 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
<!DOCTYPE html>
<link href="style.css" rel="stylesheet" />
<html lang="en">
<head>
<title>AlienBot-Youtube</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500&display=swap");
* {
font-family: "Inter", sans-serif;
}
a {
text-decoration: none;
color: black;
}
h1 {
font-size: 2.5rem;
}
p {
font-size: 1.1rem;
}
.name {
display: flex;
justify-content: center;
align-content: center;
width: 100%;
}
.buttons {
display: flex;
justify-content: center;
align-content: center;
width: 100%;
}
.button {
display: block;
margin-left: 10px;
align-self: center;
justify-self: center;
}
.button-24 {
background: #ff4742;
border: 1px solid #ff4742;
border-radius: 6px;
box-shadow: rgba(0, 0, 0, 0.1) 1px 2px 4px;
box-sizing: border-box;
color: #ffffff;
cursor: pointer;
display: inline-block;
font-family: inherit;
font-size: 1rem;
font-weight: 800;
line-height: 16px;
min-height: 40px;
outline: 0;
padding: 12px 14px;
text-align: center;
text-rendering: geometricprecision;
text-transform: none;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
vertical-align: middle;
}
.button-24:hover,
.button-24:active {
background-color: initial;
background-position: 0 0;
color: #ff4742;
}
.button-24:active {
opacity: 0.5;
}
.card {
/* Add shadows to create the "card" effect */
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
margin: 10px;
padding: 5px;
border: 1px solid rgba(0, 0, 0, 0.2);
}
/* On mouse-over, add a deeper shadow */
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
/* Add some padding inside the card container */
.container {
padding: 2px 16px;
}
</style>
</head>
<body>
<div class="name">
<h1>AlienBot-Youtube</h1>
</div>
<div class="buttons">
<div class="card">
<a href="/fullStart" class="button" id="startButton">
<button class="button-24" role="button">
Start The bot Automatically
</button>
<p class="container">Starts all bot services. <br /></p>
</a>
</div>
<div class="card">
<a href="/findChat" class="button">
<button class="button-24" role="button">find chat</button>
<p class="container">
Press this button after going live. <br />
It finds your live stream's chat.
</p>
</a>
</div>
</div>
<br />
<br />
<br />
<hr />
<br />
<br />
<br />
<div class="buttons">
<div class="card">
<a href="/startChatTracking" class="button">
<button class="button-24" role="button">start tracking chat</button>
<p class="container">
Press only after pressing "findChat" button. <br />
Starts tracking chat messages.
</p>
</a>
</div>
<div class="card">
<a class="button" id="insertButton">
<button class="button-24" role="button">insert message</button>
<p class="container">
Press only after pressing "findChat" button. <br />
Inserts a message of your choice using your account.
</p>
</a>
</div>
<div class="card">
<a href="/startModServices" class="button">
<button class="button-24" role="button">start mod over stream</button>
<p class="container">
Press only after pressing "findChat" button. <br />
Mods your chat.
</p>
</a>
</div>
<div class="card">
<a href="/startPromoting" class="button">
<button class="button-24" role="button">Start Promoting</button>
<p class="container">
Press only after pressing "findChat" button. <br />
Mods your chat.
</p>
</a>
</div>
<div class="card">
<a href="/stopChatTracking" class="button">
<button class="button-24" role="button">Stop Chat Tracking</button>
<p class="container">
Press only after pressing "findChat" and "startChatTracking" button. <br />
Mods your chat.
</p>
</a>
</div>
</div>
</body>
<script>
document.getElementById("insertButton").addEventListener("click", (e) => {
e.preventDefault();
const msg = prompt("Type in the message you want to send.");
const confirm = prompt(
`The message your sending is:\n${msg}\nconfirm?\n(yes/no)`
);
if (confirm.startsWith("y")) {
console.log(`Message sent! Message content:\n${msg}`);
window.location.href = `/insertMessage?message=${msg}`;
} else {
alert("Message not sent.");
}
});
</script>
</html>