Skip to content

gwhitcher/NOL

Repository files navigation

NOL - Discord Bot

By George Whitcher

NOL is an open source discord bot written using the discord.js library.

Requirements:

Installation

  • Install all required files if you have not already.
  • Open git bash on the directory you would like to install NOL.
  • Run git clone https://github.com/gwhitcher/NOL.git
  • Open git bash on the newly created directory and run npm install
  • Create a MySQL database and insert the file discord-bot-nol.sql.
  • Rename the config.json.default to config.json.
  • Get your server ID by visiting your discord server through the browser and copying the SERVERIDHERE area https://discordapp.com/channels/SERVERIDHERE/CHANNELIDHERE
  • If you want to use the adult features visit your NSFW channel and update the config.json file with the channel ID obtained in the step above.
  • Google Custom Search & YouTube
  • Run DB migration once: npm run migrate:db.
  • Register your commands with npm run deploy (or node deploy-commands.js).
  • To clean up commands, run npm run delete:commands (or node delete-commands.js).
  • Start the app with npm start (or node app.js).

Notes:

  • If you plan to run /backfill, enable "Server Members Intent" for the bot in the Discord Developer Portal and ensure the bot has the necessary privileged intent. The code requests GuildMembers intent.

Commands

  • /level - Display your level.
  • /top - Top users.
  • /health - Quick health check.
  • /backfill - Admin-only: backfills author_id for message_count.
  • /ephemeral-default [value] - View/set default ephemeral replies per server (admin).
  • /wiki X - Search Wikipedia.
  • /google X [count] [page] [ephemeral] - Search Google (count 1-5, page 1-10).
  • /youtube X [count] [page] [ephemeral] - Search YouTube (count 1-5, page 1-5).
  • /wiki X [ephemeral] - Search Wikipedia.
  • /dog [ephemeral] - Random dog picture.
  • /cat [ephemeral] - Random cat picture.
  • /random [ephemeral] - Random entry from config.
  • /cat - Random cat picture.
  • /dog - Random dog picture.
  • /redtube X - Search redtube. (NSFW ONLY)
  • /boobs - Random boobs picture. (NSFW ONLY)
  • /butts - Random butts picture. (NSFW ONLY)
  • /prune X - Delete posts (admin only)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published