mirror of
https://github.com/the-programmers-hangout/Mimic.git
synced 2026-09-04 01:06:00 +02:00
bae27a3f08c505299ac904b765abec39c85e2a3f
Mimic
Mimic is a Discord moderation bot built with Laracord.
It enforces MIME rules on attachments and uploads large code/files to Pastecord.
Features
- Blocks disallowed attachment MIME types.
- Uploads
UPLOADMIME attachments to Pastecord and reposts links. - Uploads code blocks larger than
MAX_CODEBLOCK_SIZE. - Optional moderation logging via
LOGGING_CHANNEL_ID.
Slash commands
Both require manage_messages.
/config key:MAX_CODEBLOCK_SIZE value:<number>/config key:LOGGING_CHANNEL_ID value:<channel_id>/mime manage add mime:<type> handling:ALLOW|UPLOAD/mime manage remove mime:<type>/mime manage view mime:<type>
Getting started
- Install dependencies
composer install
- Configure environment
Copy and edit .env:
copy .env.example .env
Set at minimum:
APP_NAME=Mimic
APP_ENV=development
DISCORD_TOKEN=your_bot_token_here
- Run the bot
php laracord bot:boot
Use --no-migrate if you want to skip migrations on boot.
Dev
Run CI checks locally:
composer ci
Format with Pint:
vendor/bin/pint
License
This project is licensed under the MIT License. See LICENSE.md.
Languages
PHP
98.7%
Dockerfile
1.3%