Селф бот дискорд как сделать

Обновлено: 06.07.2024

Here are 92 public repositories matching this topic.

appu1232 / Discord-Selfbot

Merubokkusu / Discord-S.C.U.M

A Discord API Wrapper for Userbots/Selfbots written in Python.

cgrok / selfbot.py

selfbot.py - A python discord selfbot thats easy to install - Written using discord.py

SealedSaucer / Online-Forever

TheRacingLion / Discord-SelfBot

A javascript discord selfbot that is setup and ready to go in less than 5 min.

jagrosh / Selfbot

A simple Discord selfbot that is fast and easy to set up and use

AtiLion / BotNeck-Bot

A simple discord selfbot for BetterDiscord. Installs as a plugin

SealedSaucer / Voicecord

A Code that can make your Discord Account 24/7 on Voice Channels!

hoemotion / Karuma

Karuma is a great Discord (Self-)Bot including Nukes, Raids, Mass DM, Mass DM Friends, Mass Embed Dm, Mass Embed Dm Friends. More Features are coming soon.. What are you waiting for? This Selfbot will not be a wrong decision

lehnification / Discord-SelfBot

Discord SelfBot. Made with Python and discord.py[rewrite]

hoemotion / mass-dm-discord

FOCI-DEV / Get-Discord-Token

haccer / discord-scripts

A collection of scripts to enhance your Discord experience.

GhostSelfbot / Ghost

The official source code for Ghost Discord selfbot.

jonas747 / discordlfm

zachlmao / Discord-Selfbot

zeenode / selfbot

Gowixx / indigo-selfbot

im-parsa / messi-selfbot

🔊 first auto join discord selfbot - just with one command join it to your server 🔥

SealedSaucer / Fake-Streamer

A Code that allows you to get the "Streaming" Discord Status WITHOUT Streaming!

E-Gentleman / MrHyde-Selfbot

Mr. Hyde is a Discord selfbot (bot running on your user account) bringing you some usefull features

codecorno / Selfium

A complete Selfbot project with high destruction and management power. Wrapper powered by discord.py-self

ethankrein / Trickcord-Treat-Sniper

An elegant sniper selfbot for a more civilized age. Automatically responds to the Trick'cord Treat bot faster than anyone else and with more features!

V4NSH4J / FAST-discord-token-checker

✨ Fastest Feature-packed Discord Token Checker written in GO ✨

HerrEurobeat / beepSelfBot

rigwild / discord-self-bot-console

ButterDerG / BUTTERs-Selfbot

Raffy27 / NitroEmoji

Raffy27 / DiscordTool

A customizable command line tool for advanced Discord users

hanahaneull / Discord-Sp00kbot

Improve this page

Add a description, image, and links to the discord-selfbot topic page so that developers can more easily learn about it.

Add this topic to your repo

To associate your repository with the discord-selfbot topic, visit your repo's landing page and select "manage topics."

A selfbot for Discord that is setup and ready to go in less than 5 minutes.
(If you already have the required programs installed)

Selfbots on Discord

Selfbots are officially banned. Those caught using one, will most likely be banned from Discord and have their account disabled. It has been considered as an API abuse and is no longer tolerated. Today (19/06/2018), I have decided to archive this repository and provide no more help for this project. You are still free to use it at your own risk, although like I have said many times before I am not responsible for anything you decide to do with your selfbot. Most of the code on this repository is very outdated, and if it were today, I would probably do it completely different. Maybe some day I will make another project that you will enjoy. Thanks to everyone that has used it! :D

Please remember that selfbots arent fully suported by Discord and that it should only be used to make YOUR life easier and not others. Also keep in mind that discord has a set of semi-offical rules regarding selfbots:

  • A selfbot must not, under any circumstance, respond to other user's messages. This means it should not respond to commands, should not autoreply to certain keywords, etc. You must be the only one that can control it.
  • A selfbot must not, under any circumstance, do "invite scraping". This is the action of detecting server invites in chat, and automatically joining a server using that invite.
  • As selfbots run under your account they are subject to the same Terms of Service. Meaning they should not spam, insult or demean others, post NSFW material, spread viruses or illegal material, etc. They have to follow the same rules that you follow.

IF, and only if, you accept the above rules of selfbots, then you may proceed.

- Install Required Programs -

Before you can download and setup the bot, there are 2 programs you need to have installed on your computer to make sure everything runs on first go:

- Download Project Files -

- Setup Config Files -

Once you download the project files you will see a folder named config . Inside of it will be 4 files and 1 folder:

  • avatars
  • config.json
  • games.json
  • keywords.json
  • paste.json

This is the folder where you drag and drop your avatar images if you enabled avatar rotating.

This is the main config file. Inside you will see several options. This is what each one means:

This is where the game names you want to use for the rotating playing game option are. To add or delete games, just follow the structure of the games that are already on it. (If you have set the rotatePlayingGame option in the config.json file to false , then you dont need to worry about this file)

This is where the keywords that you want the bot to search for go in. (If you have set the keywordNotificator options in the config.json file to false , then you dont need to worry about this file)

This file is where the meme texts are stored for the paste command, if you wish to add more to use with paste just follow the structure of the file and add them in. If an array is specified for one of the options then the bot will choose a random item from the array.

When you have the required programs installed, have all project files, and have setup config files, you can start the bot:

Open the installer.bat file. This will install the required node modules (so you dont have to do it yourself) and create a run.bat file. You can use this file to start the bot. If you did everything correctly, the bot should start up fine.

If for some reason you have ran installer.bat , it disapeared and it didnt create run.bat , then re-download installer.bat and try again. Most likely either git or node were not installed correctly. Check if they work and try again.

Executable files are kind of weird in Linux, and users most likely use console to do their work, so to setup this selfbot on linux or mac open a terminal in the directory you downloaded the files to and type npm i . Once it is finished you can start the selfbot by using npm start or node self.js . If you did everything correctly, the bot should start up fine.

All commands get logged to console, are case insensentive and are tested to see if the owner of the bot was the one who triggered the command. It should be easy to create commands if you know the basics of JavaScript. The library used is Eris.

The bot has several default commands. (Each command is explained inside their own file.) You can find a detailed command list here.

When you want to create a new command, just add a new file to the commands folder and name it something like mycommand.js and then follow the basic structure below. If your command needs some kind of special options like permissions or you just want to set it to be used on guilds only, then you can use the pre-made command options shown below. There are also some helper functions built in to the function.

The selfbot comes with its own logger file, which includes a few options to log things to console. If you know what you are doing, you can add many more. It uses Chalk to change the color of the logged text, so you can change the colors if you do not like them.

В этой статье я подробно расскажу о том, как работать с библиотекой discord.js, создать своего Discord-бота, а также покажу несколько интересных и полезных команд.

Сразу хочу отметить, что я планирую сделать ряд подобных статей, начиная с простых команд, заканчивая музыкой, системой экономики и распознаванием голоса ботом.

Начало работы

Если вы уже знакомы с приведёнными ниже материалами, — смело можете пролистать этот раздел.

Для начала работы с кодом нам нужно установить среду разработки, это может быть:

Среда разработки выбирается по удобству использования и практичности, она у вас может быть любая, но мы рассмотрим её на примере Visual Studio Code, так как она является одной из самых приемлемых для новичков, а также для опытных программистов.

Для установки переходим по этой ссылке.



Выбираем свою операционную систему и запускаем скачивание.

Для создания бота мы используем среду выполнения node.js. Для её установки нам необходимо перейти на этот сайт.


На данный момент нас интересует версия долгосрочной поддержки (LTS), скачиваем её.

В Visual Studio Code присутствует возможность устанавливать расширения.
Для этого, кликните по отмеченной ниже иконке.


В открывшемся окне вписываем название название/идентификатор нужного нам расширения, после чего устанавливаем его.


Из полезных расширений могу отметить:

    Discord Presence — расширение, позволяющее отображать рабочую область и файл, в котором вы работаете в вашей игровой активности (функция работает только при использовании приложения Discord).

Создание бота

Теперь, когда вы установили все нужные компоненты, мы можем приступить к созданию самого бота.

Здесь всё просто. Переходим на портал разработчиков и нажимаем на кнопку с надписью «New Application» — она находится в правом верхнем углу.

В открывшемся окне вписываем имя бота, после чего, нажимаем на кнопку с надписью «Create».


На этой странице мы можем изменить имя бота, загрузить для него иконку, заполнить описание.

Теперь наша задача — воплотить бота в жизнь. Для этого переходим во вкладку «Bot».


Нажимаем на кнопку с надписью «Add Bot» и воплощаем бота в жизнь.

Поздравляю! Вы создали аккаунт для вашего бота. Теперь у него есть тег, токен, ник и иконка.

Подготовка к написанию кода

После создания аккаунта для бота, мы должны установить нужные пакеты и модули, чтобы в дальнейшем он корректно работал.

Первым делом создаём папку, после чего открываем её в VS Code (Файл > Открыть папку) / (Ctrl + K Ctrl + O)

Далее нам нужно открыть терминал (Терминал > Создать терминал) / (Ctrl + Shift + `)


Теперь мы должны создать файл с неким «описанием» нашего бота, сделаем это через терминал.

Вписываем данную строку в терминал и нажимаем Enter:


После каждой появившейся строки нажимаем Enter или вписываем свои значения.
Значения в этом файле можно будет изменить в любой момент.

Далее, мы должны поочерёдно вводить в терминал эти строки:

«Install» также можно сокращать в «I», но необязательно.

Итого, если вы следовали инструкциям и всё сделали правильно, в вашей папке должны были появиться 3 объекта:


Написание кода

Для того, чтобы наш бот появился в сети и мог реагировать на команды, нам нужно написать для него код.

Существует множество вариантов для его написания: используя один файл, два, несколько, и т.д

Мы рассмотрим вариант с двумя файлами, так как его использовать очень легко и удобно, но у каждого варианта есть свои недостатки — например, у этого недостатком является сложность в написании начального кода.

Но не волнуйтесь, весь код вам писать не придётся.

Для начала, нам нужно где-то хранить основные параметры и информацию о боте.

Мы можем сделать это двумя способами:

  1. Создать отдельный файл
  2. Записать всё в константы

Разберём хранение параметров в отдельном файле.

Итак, создаем файл config.json

Вставляем в него следующий код:


* Для получения токена зайдите на портал разработчиков, перейдите во вкладку «Bot» и скопируйте его.


* Самым распространённым среди разработчиков префиксом является !

Далее нам нужно создать файл bot.js и вставить в него данный код:


Теперь создаём файл comms.js, в нём будут сами команды.

В нём должен быть следующий код:


Чтобы добавить больше команд — просто объявляйте больше функций и добавляйте их в список, например:


И вот, мы вышли на финишную прямую!

Осталось всего ничего — запустить бота.

Для этого открываем терминал и вставляем в него следующую строку:



Готово! Бот запущен и вы можете им пользоваться, ура!

Чтобы пригласить бота на свой сервер, воспользуемся нам уже известным порталом разработчиков.

Перейдём во вкладку OAuth2, пролистаем чуть ниже, выберем «Bot» и отметим нужные боту привилегии.


Как вывести ссылку-приглашение в терминал, при запуске бота?

Существует два способа:

    Заранее отметить нужные привилегии.


Итоговый код должен быть таким:


Чтобы указать несколько привилегий, мы должны перечислить их в квадратных скобках, через запятую:


* Все привилегии указываются заглавными буквами

Список доступных привилегий:

ADMINISTRATOR
CREATE_INSTANT_INVITE
KICK_MEMBERS
BAN_MEMBERS
MANAGE_CHANNELS
MANAGE_GUILD
ADD_REACTIONS
VIEW_AUDIT_LOG
PRIORITY_SPEAKER
STREAM
VIEW_CHANNEL
SEND_MESSAGES
SEND_TTS_MESSAGES
MANAGE_MESSAGES
EMBED_LINKS
ATTACH_FILES
READ_MESSAGE_HISTORY
MENTION_EVERYONE
USE_EXTERNAL_EMOJIS
VIEW_GUILD_INSIGHTS
CONNECT
SPEAK
MUTE_MEMBERS
DEAFEN_MEMBERS
MOVE_MEMBERS
USE_VAD
CHANGE_NICKNAME
MANAGE_NICKNAMES
MANAGE_ROLES
MANAGE_WEBHOOKS
MANAGE_EMOJIS

Полезные и интересные команды

В предыдущем разделе я показал вам, как запустить бота и как писать для него команды.
Теперь я хочу поделиться с вами несколькими своими командами.

Читайте также: