Skip to content

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.

newserv / Phantasy Star Online

NOL offers 26 public newserv subcommands for game data, filtered quest information, server counts, and open games, plus 68 administrator subcommands for raw inspection and server control. See the setup guide and full command reference.

  • /newserv server|data|ep3 ... — public game data and filtered status (private replies).
  • /newserv-inspect server|data|ep3 ... — administrator-only raw server and game data.
  • /newserv-admin console|session ... — administrator-only console commands and targeted in-game commands.

Use /newserv server help for a private walkthrough. Options such as version show readable choices (for example, Blue Burst (PC)); table-name, quest-num, and map-number suggest installed tables, quests, and maps as you type.

After updating NOL, run npm run deploy to register the new command options, then restart the bot. Restarting alone does not update Discord's command menus.

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages