Skip to content

thatnerdjoe/BASCO-cyberopsbot

 
 

Repository files navigation

Use https://discordjs.guide/ for detailed setup instructions

Specified setup:
-Create a bot via Discord Developer Portal (https://discord.com/developers/applications)
-Navigate to the OAuth2 tab of your bot in the portal and select 'bot' under the 'Scopes' section
-Select the permisions you wish the bot to have on your server by checking them under the 'Bot Permissions' section (Administrator is recommended)
-Copy the link under the 'Scopes' section and paste it into a browser of your choosing (To ensure you don't have to re-sign into Discord, use the same browser you used to access your Developer Portal)
-Select the server you want to add the bot to (You must have 'Administrator' or 'Manage Server' permissions to add the bot to the server)
-In your application directory, create a file named config.json
-Add the following to config.json:

       {
          "prefix": "YOUR_COMMAND_PREFIX_HERE",
          "token": "YOUR_TOKEN_HERE",
          "auditID": "CHANNEL_ID_TO_SEND_AUDT_LOGS"
        }

-A common example of a 'prefix' is '!' or '='
-You can find your token by navigating to the 'Bot' tab of your bot in the portal and copy the 'Token', which can be found in the 'Build-A-Bot' section under the bot's 'Username'
-Ensure you have node.js, npm, and discord.js installed on your device (pm2 is recommended for better bot management, but is not required)
-Open a terminal and navigate to the application directory (If using Visual Studio Code, which is recommended, open a new terminal with Ctrl+Shift+`)
-Run "npm start"

This will install any dependencies and start the application

Be sure to test on a private server

Docker

Build

docker build . -t basco

Run

docker run --rm -it --env-file .env basco:latest

Environment Variables

The required environment variables are:

  • APP_AUDIT_ID
  • APP_PREFIX
  • APP_TOKEN

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.5%
  • Dockerfile 2.5%