Discord SelfBot. Made with Python and discord.py[rewrite]
Dropped development
beacuse of Discords stance towards Selfbots.
With a little cleanup here and there it should however still work with the rewrite version of discord.py
This SelfBot has a lot of useful features like a bunch of Moderation commands as well as fun commands or a Mention logger.
Disclaimer: Use this on your own risk. If you get banned somewhere because of using it I won't take responsibility.
Table of Contents
Clone this repo or download it as Zip and move/unpack it to the location where you wanna have it.
Go into the config folder and rename all three files by simply removing the .example
ending and saving again.
Now after this is done, open the config file and start adding your information. Notepad should be enough to edit the file.
{
"token":"",
"prefix":["/"],
"gamestatus":"",
"custom_search_engine":"",
"google_api_key":"",
"mal_username":"",
"mal_password":"",
"webhook_token":"",
"log_channel": ,
"setlog":"off",
"embed_color":""
}
token
- On Discord hit Ctrl + Shift + I
to open the Development Console. Then move to the tab Application
and open the Local Storage
on the left bar. Once that's done, get your token here and paste it into your config. Do not give this to anyone as they will be able to gain access to your account with it.prefix
- This can be anything you like. You even can set multiple prefixes by doing something like ["/", "self."]
. I'd suggest you to take a prefix which won't easily trigger common bots as it might get spammy.gamestatus
- You can set this to whatever you want your game as. There is a command to change it while the bot is running so if you don't know what to choose you can skip this step.custom_search_engine
and google_api_key
- For this take a look at the Google API section below.mal_username
and mal_password
- MyAnimeList username and password to use the Anime and Manga command. This will simply log into your account to obtain information about Anime or Manga. Your normal account is totally okay for it. If you don't own one till now, simply create a throwaway account.webhook_token
webhook_token
and don't forget to save.log_channel
log_channel
. It should look like "log_channel": 123456789123456789,
. Do not use quotes here as we need it as number, not as Text.embed_color
- This can be a lot of things. Even empty! If you leave it empty, every command that uses this will get a random color per call. You can insert several different values thought. A web color like purple
or RGB values in the format of (155, 89, 182)
or 155, 89, 182
or HEX values like 9b59b6
or #9b59b6
or 0x9b59b6
.Mind that this description is written for
Windows
, it shouldn't differ too much on other Systems though.
You can skip any step if your System already fulfills the step.
As mentioned above we need to install Python 3.6 or higher, anything below won't work with this SelfBot.
Download
and scroll down to Files
.System Information
or similar.Add Python ** to PATH
like here and finish with Install Now
.python -V
.Windows Command Prompt
.run.bat
shift
and right-click onto anything within the folder aside of the filesOpen Command Prompt / PowerShell window here
pip install -r .\requirements.txt
into the console and let it install all dependencies we need.python loop.py
and wait for it to login.In the config folder you'll find the file quickcmds
. You can add there any quick command you want. This will react only if the exact key is said.
Like if I say flip
in chat the SelfBot will edit the message to (╯°□°)╯︵ ┻━┻
.
Here you see the base commands I added, you can add anything you want here of course. (command to do it while the bot is running #SoonTM)
{
"shrug": "¯\\_(ツ)_/¯",
"flip": "(╯°□°)╯︵ ┻━┻",
"unflip": "┬─┬ノ( ゜-゜ノ)",
"lenny": "( ͡° ͜ʖ ͡°)",
"fite": "(ง’̀-‘́)ง"
}
Keep in mind that if you have a \
in your text you need to do 2 of them. like you can see with shrug.
In order to use the /i
command to image search, you will need a Google API key and a Custom Search Engine ID.
Follow these steps to obtain them:
Library
and search Custom Search API
. Click it and enable it.Credentials
and click create credentials
and choose API Key
(no need to restrict the key). The value under "Key" is your api key. Paste this into the config.json under google_api_key
.Add
and then Create
(if asked to specify a site, just do www.google.com)Sites to Search
option to Search the entire web but emphasize included sites
.Image search
option is enabled and make sure to click the Update
button at the bottom when you are done with the changes!Details
section and click Search Engine ID
to grab the ID. Copy this and add it for custom_search_engine
in the config.json.Note: Google may take a little while to properly register your key so the search feature may not work right away. If it's still not working after a few hours, then you may have messed up somewhere.
Thanks to