🤖 About
The GlaDOS Community Bot is a powerful administration tool designed to streamline server management and enhance the community experience. Built with Node.js and Discord.js, it provides robust functionality for both moderators and members, focusing on efficient server management and community engagement.
Follow these steps to set up the GlaDOS Community Bot on your local machine or server:
- Node.js: Ensure you have Node.js installed (version specified in
.nvmrc
orpackage.json
). - Git: Install Git to clone the repository.
- Discord Bot Token: Create a bot on the Discord Developer Portal and obtain your bot token.
- Docker: Install Docker to run the bot and a postgres instance.
-
Fork the Repository: Fork this repo to your personal Github account
-
Clone the Repository:
git clone git@github.com:your-username/GlaDOS-bot.git cd GlaDOS-bot
-
Install Dependencies:
npm install
-
Set Up Environment Varialbes:
cp SAMPLE.env .env
open the .env file and fill in the required values
-
Run the Bot:
docker compose up
-
Invite the Bot to your server:
- Use the OAuth2 URL generator on the Discord Developer Portal to create an invite link with the necessary permissions.
- Invite the bot to your server using the generated link.
We love contributions from everyone! Whether you're fixing a bug, adding a new feature, or improving documentation, your help is always appreciated. Here's how you can contribute:
Follow the steps below to contribute effectively:
-
Fork the Repository: Start by forking the repository to your own GitHub account.
-
Clone the Repository: Clone the forked repository to your local development environment.
git clone https://github.com/your-username/GlaDOS-bot.git
-
Create a New Branch Locally: Create a branch for your feature or fix. Name your branch in a way that describes the purpose of your changes. For example:
feature/feature-name
bugfix/bug-description
docs/clarify-setup-instructions
-
Make Your Changes:
- Add your code, features, or bug fixes.
-
Commit Guidelines: When committing changes to your branch, please follow this naming scheme to keep commit history clean and readable:
Commit message format: <type>:<short-description>
Types:
feat: A new feature or functionality added to the project.
fix: A bug fix.
docs: Documentation changes.
style: Code style changes (e.g., formatting, missing semicolons).
refactor: Code changes that neither fix a bug nor add a feature, but improve the structure.
test: Adding or modifying tests.
chore: Changes to the build process or auxiliary tools.
Example Commit Messages:
feat: add user authentication to the website
fix: resolve issue with missing image on homepage
docs: update README.md with contribution guidelines
style: format code according to ESLint rules
test: add unit test for login function
chore: update dependencies to latest version
-
Push and Create a Pull Request: Once you're ready, push your changes to your forked repository and open a pull request to the
dev
repository.
Note: open a pull request per feature and don't forget to link the corresponding issue by writing the#issue-number
. -
Follow Up We will review your changes and may provide feedback. Please address any comments or requested changes, and we’ll merge your contribution!
- Always follow the coding style and best practices.
- Keep PRs concise and focused on a single feature or fix.
- Stay engaged in the discussions and suggest improvements.
Have questions or want to discuss the project? Join our Discord community!