TripSit / TripBot

The discord bot on TripSit.Me
22 stars 12 forks source link

Tents V2 #780

Closed LunaUrsa closed 2 months ago

LunaUrsa commented 3 months ago

TripBot now uses the database to keep track of tent settings and data.

Currently only runs when unlocking or locking tent, requires heavy optimisation and needs a select menu added

Added more optimized logic Added select menu to the settings menu


LunaUrsa commented 3 months ago

Hey @Hipperooni idk what happened but i think 'tent-moderation-overhaul' was an old branch so it was causing issues on merging with main, so i made this new branch, merged your stuff with this new branch, and we can use this one now.

Couple questions:

1) We have users.joinTentLevel and then tent_settings.join_level, do we need both? 2) tent_hostlist.tent and tent_whitelist.tent exist, but then tent_blacklist uses .channel? 3) users.createdTents is a list, but shouldn't each user have a single tent_settings entry? 3.1) Shouldn't tent_settings have a unique key so there's only one entry per user? 4) users.defaultTentName should probably go into the tent_settings? 5) users.banlist and users.whitelist don't seem to be used anymore and were replaced by the bannedFromTents and whitelistedInTents fields, if so, we should remove those?