-
Notifications
You must be signed in to change notification settings - Fork 512
Basic setup and knowledge for using the bot
- Python version >= 3.8.0
- Python-pip versoin >= 21.3.0
- [optional] git; use the latest version
- And a few python external modules: (use the latest version)
- discord (might use another discord python API module because the maintainer orphaned this module)
- packaging
- requests
- colorama
- inputimeout
- simplejson
Note you can use python3 -m pip install requirements.txt
. The requirements.txt file is right under the main branch.
To setup the most basic (without any configuration) you will need a discord user ID and a discord bot token. Basic setup will guide you to a point where the bot will start responding to the privileged users' commands in discord chat.
Without any configuration you won't be able to use commands such as kaboom
and webhook spam, but you still can use the nuke command. You can configure the configuration any time after you finished the basic setup.
If you are a windows user, you can download the precompiled (.exe) version here.
If you are using the .exe version for windows users you can double click on the .exe file to run, and now skip to Entering authentication to continue the setup process.
git clone --depth 1 https://github.com/TKperson/Nuking-Discord-Server-Bot-Nuke-Bot.git
cd Nuking-Discord-Server-Bot-Nuke-Bot
python3 -m pip install -r requirements.txt
python3 c-realV2.py
- If you have successfully booted up for the first time the bot you will greet you with "Enter token. >>>". In here, you will have to enter a discord bot token. If you don't have a bot token or you don't know what a bot token is read this.
Note: support for selfbot token is deprecated. We no longer supports selfbot in this code; however the selfbot features are not removed, but it will have bugs or not usable at all.
Important: You need to enable bot privileged intents in your bot's application
-
After entering the token, you need to enter your a discord user ID that will be used to command the bot. (How to get discord user ID)
-
And now you finished the basic setup. You will see something like this:
All you have to do is to invite the bot into your testing server to try out the commands. To invite the bot to your testing server you need to copy the invite link to a browser's URL bar. The invite code should look like this in your console:
- Upon inviting the bot to your testing server, you can try the
.help
command in the server to see all the available commands
Discord user IDs are needed for the bot to identify the owner(s) of the bot, so the bot knows whether if a discord user has the access to use the bot commands. Privileged users can give privileges to anyone to use the bot during runtime by using .config permissions add <user ID>
or give everyone access: .gap
(Give all permissions to everyone)
There are 2 ways that you can check for permissions.
- Use
.config permissions list
- Open the configuration file (usually the configuration file is called "default.json")
There are 2 ways that you can modify the permissions
- use
.config permissions <add|remove> <UserID|line number>
. You can use.config permissions list
to check line numbers- Example:
.config permissions add 349338062485979136
- Example:
.config permissions remove 2
- Example:
- Open up the configuration file and edit the "permissions". Note: the permissions value has to be a String
Example:
{
// ...
"permissions": [
"349338062485979136", // this a discord ID
"713936815022932079" // this is another discord ID
],
// ...
}
- Bot tokens are used for any program that uses discord API to connect to a bot account in discord that can later be invite to server through a link.
- Go to discord dev portal
- Create an account or login
- Create an new application (use the "New Application" button at the top left
- Give the application a name and hit create
- In the menu (should be in the left side of your screen), select the "Bot" tab.
- Click on the "Add Bot" button
- Click on the "Yes, do it!" button
- If you get an error saying "Too many users have this username, please try another." follow the steps below
- In the menu, click on "General information" and then give the bot another name that's less common.
- Enable the privileged intents like shown below:
- Copy the bot token at the top of the bot tab
- Start using it :) when it's asked.
- Log into your discord
- go to user settings
- scroll to "Advance" (this should under the app setting category)
- Enable developer mode
- Close user settings
- right click on the user's profile picture to get that user's ID (you can click on your own profile picture too)
- In the dropdown menu, you will see "Copy ID"; click that and the ID should be copied to your clipboard. You can use paste (ctrl-v or cmd-v) your ID anywhere that needed it.