-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasicselfbot.html
More file actions
349 lines (301 loc) · 10.3 KB
/
Copy pathbasicselfbot.html
File metadata and controls
349 lines (301 loc) · 10.3 KB
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
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
<!-- Prism.js syntax highlighting -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-okaidia.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-javascript.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-bash.min.js" defer></script>
<style>
:root {
--bg: #0a0a0a;
--text: #d4d4d4;
--dim: #888;
--accent: #c084fc;
--accent-hover: #d8b4fe;
--warning: #ef4444;
--surface: #111;
--border: #222;
--code-bg: #0d0d0d;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
background: var(--bg);
color: var(--text);
font-family: 'Inter', system-ui, sans-serif;
line-height: 1.7;
min-height: 100vh;
display: flex;
flex-direction: column;
}
main {
flex: 1;
max-width: 880px;
margin: 0 auto;
padding: 7rem 1.5rem 9rem;
}
/* Logo */
.logo-container {
text-align: center;
margin-bottom: 2.5rem;
}
.logo {
max-width: 320px;
height: auto;
filter: drop-shadow(0 4px 12px rgba(192, 132, 252, 0.25));
border-radius: 12px;
}
/* Top-right update pill */
.top-tab {
position: fixed;
top: 1.2rem;
right: 1.8rem;
z-index: 1000;
background: rgba(30, 30, 30, 0.7);
backdrop-filter: blur(8px);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.6rem 1.2rem;
font-size: 1rem;
font-weight: 500;
color: var(--accent);
text-decoration: none;
transition: all 0.18s ease;
}
.top-tab:hover {
background: var(--accent);
color: #000;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
}
.warning-box {
background: rgba(239, 68, 68, 0.12);
border: 1px solid var(--warning);
border-radius: 10px;
padding: 1.8rem 2rem;
margin-bottom: 3.5rem;
color: #fecaca;
font-weight: 500;
}
.warning-box strong { color: #fff; }
h1 {
font-size: 3.8rem;
font-weight: 700;
text-align: center;
color: white;
margin-bottom: 0.4rem;
letter-spacing: -0.02em;
}
.subtitle {
text-align: center;
font-size: 1.45rem;
color: var(--dim);
margin-bottom: 4rem;
}
h2 {
font-size: 2.1rem;
color: white;
font-weight: 600;
margin: 5rem 0 1.3rem;
border-bottom: 1px solid var(--border);
padding-bottom: 0.5rem;
}
ul.commands {
list-style: none;
font-size: 1.15rem;
margin: 1.5rem 0;
}
ul.commands li {
margin-bottom: 1.1rem;
padding-left: 2.2rem;
position: relative;
}
ul.commands li::before {
content: "`";
color: var(--accent);
position: absolute;
left: 0;
font-family: monospace;
}
pre {
background: var(--code-bg);
padding: 1.5rem 1.8rem;
border-radius: 10px;
margin: 1.6rem 0;
border: 1px solid var(--border);
overflow-x: auto;
}
code {
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 1.03rem;
}
.token-warning {
color: #fbbf24;
font-weight: 500;
margin: 1rem 0;
}
a {
color: var(--accent);
text-decoration: none;
font-weight: 500;
}
a:hover {
color: white;
text-decoration: underline;
text-underline-offset: 4px;
}
.cta {
text-align: center;
margin: 5rem 0 7rem;
}
.cta-button {
display: inline-block;
background: var(--accent);
color: #000;
font-weight: 600;
font-size: 1.28rem;
padding: 1.05rem 2.3rem;
border-radius: 8px;
text-decoration: none;
margin: 0.7rem 1rem;
transition: all 0.18s;
min-width: 210px;
}
.cta-button:hover {
background: var(--accent-hover);
transform: translateY(-2px);
}
.cta-button.discord {
background: #5865F2;
color: white;
}
.cta-button.discord:hover {
background: #7289da;
}
.cta-button.github {
background: #333;
color: #fff;
}
.cta-button.github:hover {
background: #444;
}
footer {
text-align: center;
padding: 3rem 1rem;
color: var(--dim);
font-size: 0.95rem;
border-top: 1px solid var(--border);
}
@media (max-width: 700px) {
h1 { font-size: 3rem; }
.logo { max-width: 260px; }
.cta-button { font-size: 1.15rem; padding: 0.95rem 1.8rem; min-width: 170px; }
main { padding: 6rem 1.2rem 8rem; }
.top-tab { right: 1rem; top: 1rem; padding: 0.5rem 1rem; font-size: 0.92rem; }
}
</style>
</head>
<body>
<a href="#" class="top-tab">Last Update: 2/24/2026 - v1.0.4</a>
<main>
</div>
<h1>BasicSB</h1>
<p class="subtitle">A simple discord selfbot written in Python.</p>
<div class="warning-box">
<strong>This is a selfbot.</strong> Using selfbots is <strong>against Discord's Terms of Service</strong> (see Community Guidelines and automation rules).<br>
Running this <strong>can result in permanent account termination</strong> — even on alternate accounts.<br><br>
<strong>Use at your own risk.</strong> This repository and code are provided for <strong>educational purposes only</strong>. I do not encourage, support, or condone any violation of Discord's ToS.
</div>
<h2>Commands</h2>
<ul class="commands">
<li>whois [@mention | user ID] → shows detailed user info (ID, username, creation date, badges, bio, pronouns, roles if in same server)</li>
<li>del → deletes the last whois message sent by the bot in that channel</li>
<li>ping / latency → shows gateway + API latency + account info</li>
<li>bl [@mention | user ID] → replies "blacklisted @user (ID)" and auto deletes the reply</li>
</ul>
<p><em>Works in DMs, group DMs, and servers.</em></p>
<h2>Requirements</h2>
<ul>
<li>Python 3.8+</li>
<li>A Discord user token (see below — extracting it carries risks)</li>
</ul>
<h2>Getting your User Token</h2>
<p class="token-warning"><strong>Warning:</strong> Sharing or logging your user token is extremely dangerous — anyone with it can fully control your account. Never share it.</p>
<ol>
<li>Press Ctrl+Shift+I (or Cmd+Option+I on Mac) to open DevTools</li>
<li>Go to the Console tab</li>
<li>Type <code>allow pasting</code> and press Enter (if prompted)</li>
<li>Paste and run this JavaScript snippet:</li>
</ol>
<pre><code class="language-javascript">(() => {
let token = null;
try {
window.webpackChunkdiscord_app?.push([[Math.random()], {}, (req) => {
for (const m of Object.values(req.c)) {
if (!m?.exports) continue;
if (m.exports === window || typeof m.exports !== 'object') continue;
if (m.exports?.default?.getToken && typeof m.exports.default.getToken === 'function') {
token = m.exports.default.getToken();
if (token && typeof token === 'string' && token.includes('.')) break; // looks like real token
}
if (m.exports?.Z?.getToken && typeof m.exports.Z.getToken === 'function') {
token = m.exports.Z.getToken();
if (token && typeof token === 'string' && token.includes('.')) break;
}
}
}]);
window.webpackChunkdiscord_app?.pop();
} catch (e) {
console.error("Webpack push failed:", e.message);
}
if (!token) {
try {
window.webpackChunkdiscord_v2?.push([[Math.random()], {}, (req) => {
for (const m of Object.values(req.c)) {
if (!m?.exports) continue;
if (m.exports === window || typeof m.exports !== 'object') continue;
if (m.exports?.default?.getToken && typeof m.exports.default.getToken === 'function') {
token = m.exports.default.getToken();
if (token && typeof token === 'string' && token.includes('.')) break;
}
if (m.exports?.Z?.getToken && typeof m.exports.Z.getToken === 'function') {
token = m.exports.Z.getToken();
if (token && typeof token === 'string' && token.includes('.')) break;
}
}
}]);
window.webpackChunkdiscord_v2?.pop();
} catch (e) {
console.error("Fallback chunk failed:", e.message);
}
}
console.log(token ? "" + token : "Token Not found, Possibly the webpack fully patched in this build.");
if (token) navigator.clipboard.writeText(token).catch(() => {});
return token;
})();</code></pre>
<h2>Installation</h2>
<pre><code class="language-bash">pip uninstall discord discord.py discord.py-self -y # to avoid version conflict
pip install git+https://github.com/dolfies/discord.py-self.git aiohttp --upgrade --force-reinstall</code></pre>
<h2>Run</h2>
<pre><code class="language-bash">python script.py</code></pre>
<p style="margin-top: -1rem;">(make sure to add your user token inside <code>script.py</code> where indicated)</p>
<div class="cta">
<a href="https://github.com/nicopancakes/BasicSB/archive/refs/heads/main.zip" class="cta-button" download>
Download Newest Version - 3.5 KB
</a>
<a href="https://download948.mediafire.com/2f27k06aqj6gn55LOFQz3fUX1AncYdiKmprIIsRzgig_0ibMah_V3upRyTsIyQ2OK1jC_GGwLYPWSwEXRrtptn8tHwuJx8Q4b0ZPYmv7kQz_bc5oRFRi3qbFSLN82QSf1FTJJhkbqXl62hEGuep6A0id4p25wAJvZdhbeuIpfZc/wlzzd5mafckv5d1/betasb.py" class="cta-button" download>
Download BETA - 11.3 KB
</a>
<a href="https://discord.gg/UhnUbE9JEd" class="cta-button discord" target="_blank">
Join Discord
</a>
<a href="https://github.com/nicopancakes/BasicSB" class="cta-button github" target="_blank">
View on GitHub
</a>
</div>
</main>
<footer>
read if cute
</footer>
</body>
</html>