Skip to content

Commit

Permalink
Simple fix to /levels: Voice xp bar appearing even if level 0 (#697)
Browse files Browse the repository at this point in the history
* many changes

Added /message
Added roleAudits for donor colours in onboarding
Added typing status to /say

* Team Mindset Roles BETA

It works, but is kinda slow sometimes, probably some inefficient looping

* Update tents to use new voice category

Tents are now in their own category

* I forgot 2 roles

I am silly

* Important Fixes

Make AFK channel immune to deletion
Make TTS role count as donor for donor colours

* Add "Busy" role to TTS mindsets

* Update futon ID

Silly bot keeps deleting it

* Change how deleting tents works

Changed from checking explicit IDs to not delete to simply checking if a voice channel includes a tent emoji or not

* Add bot typing status to announcements

* Fix TTS access to donor colours

* Make typing status 3 seconds

* Small fixes / updates

Add 'busy' role to TTS mindsets
Make tripbot typing 3 seconds instead of 1.5
Add typing to announcements
Change how tent deletion works
Update IDs in env

* Merge and lint

* Update tents permission overwrites

* belly button linting

* Bug in knex

* Add /voice radio

First pass, needs work and add function of changing the tent name to signify the bot is being borrowed

* Add /voice bitrate

Allows editing of bitrate

* Lint that shit

* One more lint

* Finish up

* Possible /voice radio fix

No way to test in dev. Incorporated what was originally a separate function (checking if there is already a radio bot in the channel before moving a new one in), into the same part of the code that checks if the radio is available and pulls it in

* Make "user" entry for /timezone and /birthday required to speed up command entry

* Trivia, small fixes

Re-enabled Trivia
Stopped Verified role from being removed during tripsit session (stops welcome messages)
Added code for /voice add (disabled)
Removed /voice radio (just way too buggy)
Small edit to welcome message

* Undo required

* Linting

* Fixing actions

* New donator system

Becoming a patron sub now also gives the "Premium Member" role. This new role is what activates all the donator benefits. Supporter role now only acts as a cosmetic with as a hoisted role with gem icon.

Premium Member is permanent for Patreon or Kofi donations. Booster is unchanged and all donator perks for boosters is removed once they stop boosting.

* Update env.config.ts

* Add kofi link

* Ignore donor roles in tripsit mode

To prevent duplicate donation announcement messages

* Update d.donate and a few minor things

* Add premium role add

* Add 4 new backgrounds, remove multipliers

* Add premium and legacy icon to /profile and /levels

* Oops

* Better implementation

* Better implementation v2

* Update background URLs

* lint that belly button

* Commit of shame

* Incredible new icon slot system + medal colours

Future proof icon system, and added gold, silver and bronze colouring to top ranks in /levels

* [EXPERIMENTAL] Donation trigger system

Can differentiate between all types of donations and act accordingly.

* Making /levels actually modular

* Remove debug

* VoiceXP in levels fix & Basic code for flairs (inactive)

* Make total rank use actual total, not just text total

* /profile Pixel peep positioning fix

* Made /profile icons more intuitive

* Rooni needs to lint =P

* Update env.config with trigger role

* Fix for voice xp bar appearing even if level 0

---------

Co-authored-by: Moonbear <[email protected]>
  • Loading branch information
Hipperooni and LunaUrsa authored Nov 11, 2023
1 parent 8ded16f commit d0724ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discord/commands/guild/d.levels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export const dLevels: SlashCommand = {
}[];

// Check if user has voice xp, if so add it to the list to be assigned a xp bar slot
if (levelData.VOICE.TOTAL) {
if (levelData.VOICE.TOTAL.level > 0) {
const progressVoice = levelData.VOICE.TOTAL
? levelData.VOICE.TOTAL.level_exp / levelData.VOICE.TOTAL.nextLevel
: 0;
Expand Down

0 comments on commit d0724ee

Please sign in to comment.