A comprehensive Discord bot designed specifically for the Web Dev Discord server, providing helpful resources, documentation lookup, moderation tools, and educational content for web developers.
/mdn [query]- Search MDN Web Docs for web development documentation/npm [query]- Search npm registry for packages/baseline [query]- Check browser baseline compatibility for web features
/guides [subject]- Access detailed guides on various web development topics
/tips [subject]- Get quick tips on interacting within the Web Dev Discord server
/repel [target] [reason]- Advanced moderation command (meant to be given to a high quantity of volunteer assistants) that:- 1: Checks bot permissions.
- 2: Checks target's role to make sure it's under in hierarchy.
- 3: Times out target user.
- 4: Deletes target user's very recent messages across channels.
- 5: Logs the action to a channel.
/ping- Basic connectivity test to verify bot responsiveness
- Node.js (version specified in
.nvmrc) - pnpm package manager
- Discord Bot Token
-
Clone the repository:
git clone <repository-url> cd webdev-bot
-
Install dependencies:
pnpm install
-
Create a
.envfile based on.env.exampleand fill in the required environment variables:cp .env.example .env # Edit .env to add your Discord bot token and other configurations -
Build and start the bot:
pnpm run build:dev pnpm start
- Or for development with hot reloading:
pnpm run dev
To use docker with the bot, run:
# Development
pnpm run docker:dev
# Production
pnpm run docker:prod
# Build only
pnpm run docker:build- Send Messages
- Read Message History
- Manage Messages
- Moderate Members
- Use Slash Commands
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and linting
- Submit a pull request
- Add markdown files to
src/commands/guides/subjects/orsrc/commands/tips/subjects/ - Include frontmatter with
namefield - The bot will automatically detect and load new content
For issues, questions, or feature requests:
- Open an issue on GitHub
- Contact the Web Dev Discord server moderators
Made with ❤️ for the Web Dev Discord community