├── .gitattributes ├── README.md ├── config.json ├── index.js └── package.json /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | * sivan=detec 4 | * vc= true 5 | * sec=s 6 | # dont delete this 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | - [x] if you have any problem [open poll](https://github.com/sivvv0/acc-vc-selfbot/issues/new) 2 | - [x] if you have any request [open ticket](https://github.com/sivvv0/acc-vc-selfbot/issues/new) 3 | - [ ] **Replit banned selfbots** 4 | - [ ] you have to have a site for hosting this project like [nexcord]() or [waifly]() 5 | 6 | ## Selfbot 7 | 8 | This is a simple [discord.js-selfbot-v13](https://www.npmjs.com/package/discord.js-selfbot-v13) example. 9 | 10 | 11 | 12 | Dependencies maybe outdated. You should update them yourself! 13 | 14 | This is a simple Selfbot script that aims to keep accounts always on the Voice Channel. 15 | 16 | Please edit the `./config.json` file first. 17 | 18 | ### Config Information 19 | 20 | ```json 21 | { 22 | "Token": "tokenhere", 23 | "Guild": "", // guild that where spam be in 24 | "Channel": "" // channel id for spam 25 | } 26 | ``` 27 | 28 | [![Discord Presence](https://lanyard.cnrad.dev/api/547776045000949770)](https://discord.com/users/547776045000949770) 29 | 30 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "Token": "tokenhere", 3 | "Guild": "", 4 | "Channel": "" 5 | } 6 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const { Client } = require('discord.js-selfbot-v13'); 2 | const { joinVoiceChannel } = require("@discordjs/voice"); 3 | 4 | const client = new Client({ checkUpdate: false }); 5 | 6 | const config = require(`${process.cwd()}/config.json`); 7 | 8 | client.on('ready', async () => { 9 | console.log(`Logged in as ${client.user.tag}!`); 10 | 11 | await joinVC(client, config); 12 | }); 13 | 14 | client.on('voiceStateUpdate', async (oldState, newState) => { 15 | const oldVoice = oldState.channelId; 16 | const newVoice = newState.channelId; 17 | 18 | if (oldVoice !== newVoice) { 19 | if (!oldVoice) { 20 | // empty 21 | } else if (!newVoice) { 22 | if (oldState.member.id !== client.user.id) return; 23 | await joinVC(client, config); 24 | } else { 25 | if (oldState.member.id !== client.user.id) return; 26 | if (newVoice !== config.Channel) { 27 | await joinVC(client, config); 28 | } 29 | } 30 | } 31 | }); 32 | client.login(config.Token); 33 | // Copyright by sivvv0 34 | async function joinVC(client, config) { 35 | const guild = client.guilds.cache.get(config.Guild); 36 | const voiceChannel = guild.channels.cache.get(config.Channel); 37 | const connection = joinVoiceChannel({ 38 | channelId: voiceChannel.id, 39 | guildId: guild.id, 40 | adapterCreator: guild.voiceAdapterCreator, 41 | selfDeaf: false, 42 | selfMute: true 43 | }); 44 | } 45 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "selfbot", 3 | "version": "1.0", 4 | "description": "bot", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "author": "sivvv0", 10 | "license": "MIT", 11 | "dependencies": { 12 | "node-pre-gyp": "^0.17.0", 13 | "@mapbox/node-pre-gyp": "^1.0.9", 14 | "@discordjs/opus": "^0.8.0", 15 | "@discordjs/voice": "^0.16.1", 16 | "discord.js-selfbot-v13": "^2.15.0", 17 | "ffmpeg-static": "^5.0.2", 18 | "prism-media": "^1.3.4", 19 | "sodium": "^3.0.2" 20 | }, 21 | "engines": { 22 | "node": ">=16.6.0", 23 | "npm": ">=7.0.0" 24 | } 25 | } 26 | --------------------------------------------------------------------------------