- Install required packages
pip install -r requirements.txt- Set environment variables
DISCORD_TOKENFIREBASE_CERTIFICATELOG_CHANNEL_ID(optional, for interaction logs)
- Run the bot
python bot.py-
register
-
Registers the user by initializing their gear slots
-
!ezloot register
-
-
set
-
Records an item for the specified gear slot for a registered user
-
!ezloot set <slot> <item><slot>- Gear slot (case-insensitive) which can be any from: head - cloak - chest - gloves - legs - boots - necklace - bracelet- belt - ring 1 - ring 2 - weapon1 - weapon2 - arch1 - arch2<item>- Item to record for specified spot - (SPELLING AND PUNCTUATION MATTERS!!!!!!!!!!!!!!!)
-
-
edit
-
Allows a user to update an exiisting gear entry if slot is not locked
-
!ezloot edit <slot> <new_item><slot>- Specified gear slot<new_item- New item name
-
-
pity
- Displays a user's current pity level
!ezloot pity[user_identifier]- Admin only
-
showgear
-
Displays user's current gear entries for all slots
-
!ezloot showgear[user_identifier]- Admin only
-
-
showloot
- Displays user's loot records
!ezloot showloot [@User][user_identifier]- Admin only
-
commands
- Displays a list of all available user commands
!ezloot commands
- listusers
- Lists all registered users by finding their names
!ezloot listusers
- finditem
- Searches all users' gear slots for the specified item and returns a list of users who have that item in their record
!ezloot finditem <item><item>- Item name to search for (case-insensitive)
- findbonusloot
- Searches all users' bonus loot entries that match the substring
!ezloot findbonusloot <item>
- assignloot
- Assigns loot for tthe specified gear slot to the mentioned user, locks that slot, and records the loot entry
!ezloot assignloot <user_identifier> <slot> [source]<user_identifier>- The user to receive the loot<slot>- Gear slot of item[source]- Optional string to append indicating where loot was obtained
- assignbonusloot
- Assigns bonus loot for gear slot
!ezloot assignbonusloot <user_identifier> <slot> <loot>
- addpity
- Increments a user's pity level by 1
!ezloot addpity <user_identifier>
- setpity
- Sets the pity level for a user to a specified value
!ezloot setpity <user_identifier> <pity_level>
- editgear
- Edits another user's gear slot directly even while locked
!ezloot editgear <user_identifier> <slot> <new_item>
- unlock
- Unlocks a user's gear slot
!ezloot unlock <user_identifier> <slot>
- removegear
- Removes a specified user's entered gear item for a specified slot (unlocks as well)
!ezloot removegear <user_identifier> <slot>
- removeloot
- Removes a user's loot entry for a specified slot from their record
!ezloot removeloot <user_identifier> <slot>
- removebonusloot
- Removes a user's bonus loot entry for a specified slot
!ezloot removebonusloot <user_identifier> <slot>
- removeuser
- Removes a nonadmin user from the database
!ezloot removeuser <user_identifier>
- viewloot
- Displays all loot entries the mentioned user has received
!ezloot viewloot <user_identifier>
- guildtotal
- Shows the total count of loot pieces awarded to all users combined
!ezloot guildtotal