A Discord bot to play Sundial Game's Quest Calendars.
- Run
composer installto get all the PHP dependencies. - Copy
.env.exampleto.env, then edit.envwith your details. - To register the bot's application commands, run
composer bot:register. - To start the bot, run either
composer botorcomposer bot:start.
The bot needs the following scopes and permissions:
- Scopes
- applications.commands
- bot
- Bot Permissions
- Text Permissions
- Send Messages
- Manage Messages
- Embed Links
- Read Message History
- Add Reactions
- Use Slash Commands
- Text Permissions
- Run
composer qato lint everything.
In addition to the shipped assets available in ./src/QuestCalendarsBot/Addons,
you can define your own custom assets outside of this location. To get started,
either create a directory in ./custom and add your asset classes to it, or
specify your own (and/or additional) directories by modifying the $addonDirs
configuration in bin/quest-calendars-bot.php. Make sure the class namespace
maps to the directory structure and that each asset class uses one of the
following asset Attributes:
#[Calendar]#[Character]#[Command]#[Entity]
Here's an example of how you'd organize and namespace custom assets:
| Location | Namespace |
|---|---|
custom/MyGreatAddonName/SleepCommand.php |
namespace MyGreatAddonName |
custom/MyGreatAddonName/Deeper/Path/WyrmCalendar.php |
namespace MyGreatAddonName\Deeper\Path |
contrib/theirRepo/theirAddon/SnuffleCharacter.php |
namespace theirAddon1 |
1 Only possible if you add contrib/theirRepo to $addonDirs.