Skip to content

Basic setup and knowledge for using the bot

TKperson edited this page Jan 2, 2023 · 9 revisions

Requirements to run the bot using source code

  • 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.

Start setting up

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.

Build/run the bot

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.

  1. git clone --depth 1 https://github.com/TKperson/Nuking-Discord-Server-Bot-Nuke-Bot.git
  2. cd Nuking-Discord-Server-Bot-Nuke-Bot
  3. python3 -m pip install -r requirements.txt
  4. python3 c-realV2.py

Entering authentication

Enter token. >>>

  • 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

Enter ID. >>>

  • 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:

c-realV2 setup completed image

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

Bot access permissions

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)

check and add permissions

There are 2 ways that you can check for permissions.

  1. Use .config permissions list
  2. Open the configuration file (usually the configuration file is called "default.json")

There are 2 ways that you can modify the permissions

  1. 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
  2. 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 token

  • 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.

How to get the bot token?

  1. Go to discord dev portal
  2. Create an account or login
  3. Create an new application (use the "New Application" button at the top left
  4. Give the application a name and hit create
  5. In the menu (should be in the left side of your screen), select the "Bot" tab.
  6. Click on the "Add Bot" button
  7. 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.
  1. Enable the privileged intents like shown below: image
  2. Copy the bot token at the top of the bot tab
  3. Start using it :) when it's asked.

How to get user ID

  1. Log into your discord
  2. go to user settings
  3. scroll to "Advance" (this should under the app setting category)
  4. Enable developer mode
  5. Close user settings
  6. right click on the user's profile picture to get that user's ID (you can click on your own profile picture too)
  7. 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.