Skip to content

Gnome Nepal Discord Bot repository! This project is dedicated to creating a multi-functional Discord bot tailored for the Gnome community in Nepal.

License

Notifications You must be signed in to change notification settings

GNOME-Nepal/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GNOME Nepal Discord Bot

Discord Bot for GNOME Nepal Discord Server.

Prerequisites

  1. Node.js installed (v16.6.0 or later recommended).
  2. A Discord account with access to the Discord Developer Portal.

Getting Started

1. Setting Up the Bot in Discord Developer Portal

  1. Log in to the Discord Developer Portal.
  2. Click on New Application to create a new bot application.
  3. Copy the Client ID from the application settings.
  4. Navigate to the Bot section, click Add Bot, and copy the Token.
  5. Go to the OAuth2 section, select URL Generator, and enable the following scopes:
    • bot
    • applications.commands
  6. Under Bot Permissions, select the permissions your bot needs (for now Send Messages, Read Message History, etc.).
  7. Copy the generated URL and use it to invite the bot to your server.

2. Setting Up the Project Locally

  1. Clone or download this repository.
  2. Install dependencies:
    npm install
  3. Create a config.json file in the project root and add the following keys:
    {
     "CLIENT_ID": "your-client-id",
     "TOKEN": "your-bot-token",
     "GUILD_ID": "your-guild-id",
     "MOD_ROLE_ID": "your-mod-role-id"
    }
    Replace your-client-id, your-bot-token, your-mod-role-id and your-guild-id with the respective values from the Discord Developer Portal & Server.

3. Running the Bot

Start the bot in development mode:

npm run dev

If successful, you will see the following logs:

  • Registering slash commands...
  • Slash commands registered successfully!
  • Logged in as <Your Bot's Username>

4. Using the Commands

In your Discord server, type /help to see the list of available slash commands. Use $sudo help to see the list of available prefix commands.

Project Structure

  • index.js: Main script for the bot's functionality.
  • config.json: Configuration file for sensitive credentials.
  • Src/General/userhelp.js: Contains the prefix help command.
  • Src/Slash-Commands/help.js: Contains the slash help command.
  • Src/Moderation/purge.js: Contains the purge command.

Dependencies

Install dependencies using:

npm install discord.js
npm install discord.js @discordjs/builders

Contributing

Contributions are welcome! Feel free to fork the project and submit a pull request. This update includes the latest commands and project structure.


About

Gnome Nepal Discord Bot repository! This project is dedicated to creating a multi-functional Discord bot tailored for the Gnome community in Nepal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •