Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[General] Add toggle to [p]serverinfo that shows more details #2382

Merged
merged 28 commits into from Mar 15, 2020

Conversation

PredaaA
Copy link
Member

@PredaaA PredaaA commented Jan 20, 2019

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Using [p]serverinfo true shows more details about the guild, such as verification levels, AFK channel and timeout, number of custom emojis, special and/or Nitro boost features. This is untoggled by default.

- Added some more informations about the server.
  (Verification level, AFK channel and timeout, custom emojis and special features).
- Added custom texts for Region (and Verification levels).
- Added more details about members (Number of humans, bots, and all status).
- Show special features only if the server has one.
- Show "Verified" logo only if the server is verified.
- And changed the footer by adding how many time the bot as join the server.
@Zephyrkul
Copy link
Contributor

Just FYI, your PR is failing a style check (clicky).

Copy link
Contributor

@mikeshardmind mikeshardmind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall nice looking embed with more info. Would love to see some leveraging of the mobile status info in this at some point too. There are a few things which should be changed here before this gets merged.

redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
PredaaA and others added 3 commits January 20, 2019 22:55
Added exception on server command for the phrase "To leave a server, just type its number.".
@PredaaA PredaaA requested a review from tekulvw as a code owner February 1, 2019 02:37
- Adding "lurkers" check, for the new feature that are on bot which allow users to join a server in read-only (Works only on verified servers for now)
- Adding streaming status.
- Adding mobile status with suggestion of Sinbad.
@PredaaA
Copy link
Member Author

PredaaA commented Feb 6, 2019

I know that not everyone likes my PR for this serverinfo command, and I really can understand that because it's totally different than the original command, but also some people like it so that's why I continue to trying to improve it.

  • Fixed all changes that Sinbad asked.
  • Adding "lurkers" check, for the new feature that are on Discord which allow users to join a server in read-only (Works only on verified servers for now, only beta)
  • Adding streaming status.
  • Adding mobile status that a suggestion from Sinbad.

Thanks to testing channel on Red Discord for all your help.
(I'm sorry for all commits you see above, it wasn't intended to show it here, really sorry for that)

@Zephyrkul
Copy link
Contributor

If this PR ends up being rejected, I wouldn't mind seeing it in a 3rd party cog.

@PredaaA
Copy link
Member Author

PredaaA commented Feb 6, 2019

That's what I've already done. I've added it into a 3rd party cog in my repo, that replace the original command.

@Tobotimus Tobotimus added the Type: Enhancement Something meant to enhance existing Red features. label Feb 20, 2019
@Tobotimus
Copy link
Member

The embed is more cluttered, but I think the information on it is still easy to find. I was initially thinking of making it an option / add a "verbosity" argument to serverinfo, but I don't think that's necessary. So purely from a black box perspective I'd give this my 👍

@Kowlin
Copy link
Member

Kowlin commented Feb 22, 2019

I feel like this would be an appropriate candidate for a -verbose flag.

@mikeshardmind
Copy link
Contributor

The detection of lurkers there is a bug to be fixed in discord (see: discord/discord-api-docs#855) , we shouldn't include something which exposes them in the mean time.

I also agree with kowlin about the verbosity setting, and it does not have to significantly change the logic to use this, just place certain parts under and if verbose: statement.

I've added a bool that are False by default and sent the original serverinfo command, and if set to True send my edited version.
And I've disabled the lurkers detection until this bug (discord/discord-api-docs#855) isn't fixed.
@PredaaA
Copy link
Member Author

PredaaA commented Mar 2, 2019

I've added a bool that are False by default and sent the original serverinfo command, and if set to True send my edited version, and finally I think it's better with that, if users want more information about the server it just need to set True when send the command.
I've just keep the personalized text for region in original one, in my opinion it looks better like this, but maybe I'm wrong, tell me if you think it's better without.

And I've disabled the lurkers detection until the bug @mikeshardmind mentionned isn't fixed.

@Tobotimus Tobotimus removed V3 labels Jun 29, 2019
@Jackenmen Jackenmen added Category: Bot Core Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. and removed Category: Bot Core labels Jan 16, 2020
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
@PredaaA PredaaA changed the title [V3 General cog] Enhancement of [p]serverinfo command [General] Enhancement of [p]serverinfo command when using a toggle Feb 8, 2020
@PredaaA PredaaA changed the title [General] Enhancement of [p]serverinfo command when using a toggle [General] Show more details in [p]serverinfo command when using a toggle Feb 8, 2020
@Jackenmen Jackenmen removed the Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. label Mar 15, 2020
@Jackenmen Jackenmen self-assigned this Mar 15, 2020
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Outdated Show resolved Hide resolved
redbot/cogs/general/general.py Show resolved Hide resolved
@Jackenmen Jackenmen added this to the 3.3.3 milestone Mar 15, 2020
Copy link
Member

@Jackenmen Jackenmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the PR!

@Jackenmen Jackenmen changed the title [General] Show more details in [p]serverinfo command when using a toggle [General] Add toggle to [p]serverinfo that shows more details Mar 15, 2020
@Jackenmen Jackenmen merged commit 6128d54 into Cog-Creators:V3/develop Mar 15, 2020
@Jackenmen Jackenmen added the Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. Type: Enhancement Something meant to enhance existing Red features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants