Discord bot for managing and tracking Old School RuneScape (OSRS) clan data, built on Laracord (Laravel Zero-based) and integrating with Wise Old Man.
Note: This README reflects the current repository state. Unknowns are explicitly marked as TODOs.
- Tech stack: PHP 8.4, Composer, Laracord framework (Laravel Zero style), Symfony Console, PHPUnit, PHPStan, Laravel Pint, Easy Coding Standard (ECS).
- Entry point: ./laracord (CLI).
- Packaging: box.json present for PHAR builds (see Packaging section).
- Database: Laravel-style migrations supported.
- PHP: ^8.4
- Composer
- Extensions: Standard PHP extensions required by dependencies (see composer install for any missing ext- errors).
- Database: A supported database configured via Laravel config (e.g., SQLite/MySQL/PostgreSQL). TODO: Document the default driver used by this project.
- Clone the repository.
- Install PHP dependencies:
composer install
- Initialize environment:
cp .env.example .env # Fill in required values (see Environment variables) - Configure your database in .env (see Laravel database configuration).
- Run database migrations (if used by your commands):
./laracord migrate # or php laracord migrate
- Start the CLI application (will run the default Laracord command or your custom commands):
./laracord
- List available commands:
./laracord list
These tools are available via Composer-installed binaries:
- Tests:
./vendor/bin/phpunit
- Static analysis (PHPStan):
./vendor/bin/phpstan analyse
- Coding standards (ECS):
./vendor/bin/ecs check ./vendor/bin/ecs fix # to fix automatically
From .env.example:
- APP_NAME=Laracord
- APP_ENV=development
- DISCORD_TOKEN= (Discord bot token)
- WISE_OLD_MAN_API_KEY=
- WISE_OLD_MAN_GROUP_ID=001
- WISE_OLD_MAN_GROUP_CODE=001
- PET_REVIEW_CHANNEL=
Data structure / ER graph:
