refactor: vendor content as regular files (remove git submodules) so CI builds don't need GitHub auth

This commit is contained in:
asepharyana
2026-07-02 02:38:04 +07:00
parent 7b106fe562
commit 134674d7dd
452 changed files with 75011 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
'use strict';
// No longer using 2captcha since the website no longer supports hCaptcha, which Discord uses.
const Captcha = require('2captcha');
const Discord = require('../src/index');
const solver = new Captcha.Solver('<2captcha key>');
const client = new Discord.Client({
captchaSolver: function (captcha, UA) {
return solver
.hcaptcha(captcha.captcha_sitekey, 'discord.com', {
invisible: 1,
userAgent: UA,
data: captcha.captcha_rqdata,
})
.then(res => res.data);
},
captchaRetryLimit: 3,
});
client.on('ready', async () => {
console.log('Ready!', client.user.tag);
await client.acceptInvite('mdmc');
});
client.login('token');