By George Whitcher
NOL is an open source discord bot written using the discord.js library.
Requirements:
- 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.defaulttoconfig.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
- Create a custom search.
- Update your config.json with the provided CSE ID.
- Create a project on the Google Cloud Console
- Choose API's & Services and activate Google Custom Search & YouTube.
- A key will be provided. Update your config.json with the provided key.
- Run DB migration once:
npm run migrate:db. - Register your commands with
npm run deploy(ornode deploy-commands.js). - To clean up commands, run
npm run delete:commands(ornode delete-commands.js). - Start the app with
npm start(ornode 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 requestsGuildMembersintent.
- /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)