[V3/Economy] Leaderboard Facelift #1898

Merged
Redjumpman merged 2 commits from V3/Leaderboard into V3/develop 2018-07-12 03:22:29 +02:00
Redjumpman commented 2018-06-27 12:17:11 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Some of the changes are as follows:

The syntax lang has been changed from Python to Markdown. Python would often mess up the colors when names have highlight-able characters such as ', ", numbers, and builtin names like for.

Instead of expanding the box as the user changes the top, it now uses a menu to let the user move through the scoreboard, 10 at a time. In the past, if you had 1000 people on the board, it would display as many as possible (up to 2k char limit) and then spit out a new msg. This will prevent some of that spam, and is easier to read.

A header was added for aesthetics.

Your name on the leader board is now visible with <<name here>>. If you aren't on mobile, your name will appear gold.

Here is a demo of it in action:

Some additional thoughts:

I consider this to be the first iteration of several changes I would like to send towards the leaderboard. I didn't want to add any additional dependencies, so it just uses the tools it already has. In the future I'll probably try to add an optional embed to make it really fancy 👖 . Some of the short commings of the leaderboard are:

  • Doesn't respect zero width characters
  • Emojis in names (but why 😢 )
  • Leaderboard uses the display name you registered with, not your current display name.

Moving forward I would like to address those issues as best as possible. For anyone reading this and playing catch up, those were already issues it had before this PR.

### Type - [ ] Bugfix - [X] Enhancement - [ ] New feature ### Description of the changes Some of the changes are as follows: The syntax lang has been changed from Python to Markdown. Python would often mess up the colors when names have highlight-able characters such as `'`, `"`, numbers, and builtin names like `for`. Instead of expanding the box as the user changes the top, it now uses a menu to let the user move through the scoreboard, 10 at a time. In the past, if you had 1000 people on the board, it would display as many as possible (up to 2k char limit) and then spit out a new msg. This will prevent some of that spam, and is easier to read. A header was added for aesthetics. Your name on the leader board is now visible with `<<name here>>`. If you aren't on mobile, your name will appear gold. Here is a demo of it in action: ![](https://gyazo.com/f2f979d8432a58d12b891f309d003f4c.gif) Some additional thoughts: I consider this to be the first iteration of several changes I would like to send towards the leaderboard. I didn't want to add any additional dependencies, so it just uses the tools it already has. In the future I'll probably try to add an **optional** embed to make it really fancy 👖 . Some of the short commings of the leaderboard are: - Doesn't respect zero width characters - Emojis in names (but why 😢 ) - Leaderboard uses the display name you registered with, not your current display name. Moving forward I would like to address those issues as best as possible. For anyone reading this and playing catch up, those were already issues it had before this PR.
palmtree5 (Migrated from github.com) reviewed 2018-06-27 12:17:11 +02:00
Kowlin (Migrated from github.com) approved these changes 2018-07-12 03:12:52 +02:00
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!1898
No description provided.