Building
Slime
The `slime` command allows users to catch slimes using slime-catching tools in their inventory. It can be triggered using the prefix `sl` or the slash command `/slime`.
Command Details
- Name: slime
- Aliases: sl
- Category: Inventory
- Description: Go catch some slimes!
- Usage:
slime
,/slime
- Examples:
slime
/slime
- Cooldown: 3 seconds
- Arguments: None
- Slash Command: Enabled
- Permissions:
- Bot: SendMessages, ViewChannel, EmbedLinks
- User: None
- Player Requirements: None
Functionality
- Allows users to catch slimes using the appropriate tools in their inventory.
- Uses
client.resourceManager.gatherResource()
to handle the logic. - Requires the following resources:
- Tools:
SlimeTools
(e.g., slime nets or traps) - Resources:
Slimes
(different slime species/types)
- Tools:
- Likely checks:
- Tool availability and durability.
- Applies random chance for slime rarity.
- Displays feedback in an embed according to the bot's style.
Code Overview
The command:
- Extends a
Command
class structure. - Handles both message-based and slash commands.
- Imports:
SlimeTools
from../../assets/inventory/SlimeTools.js
Slimes
from../../assets/inventory/SlimeCatalog.js
- Main logic is delegated to
client.resourceManager.gatherResource()
, which:- Manages slime catching.
- Handles randomness, durability reduction, and reward assignment.
Mine
The `mine` command allows users to gather minerals by using mining tools in their inventory. It can be triggered using the prefix `m` or the slash command `/mine`.
Apply Job List
The `applyjoblist` command lists all users with pending job applications grouped by job position. This command is intended for staff or developers only.