[Help] Continuing work and bug-fixes #2676

Merged
mikeshardmind merged 6 commits from continuing-help into V3/develop 2019-05-18 12:54:02 +02:00
mikeshardmind commented 2019-05-15 13:00:03 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Includes some of the improvements related to #2667

  • Fixes a small issue in a previously not-exposed logic path
  • Fixes an issue with denied commands help invocation
  • Adds some global usage settings
  • Fixes #2681 (the command erroring on blocking the bot)
### Type - [X] Bugfix - [X] Enhancement - [ ] New feature ### Description of the changes Includes some of the improvements related to #2667 - Fixes a small issue in a previously not-exposed logic path - Fixes an issue with denied commands help invocation - Adds some global usage settings - Fixes #2681 (the command erroring on blocking the bot)
tekulvw (Migrated from github.com) reviewed 2019-05-15 13:00:03 +02:00
Twentysix26 (Migrated from github.com) reviewed 2019-05-15 13:00:03 +02:00
DevilXD commented 2019-05-15 15:04:51 +02:00 (Migrated from github.com)

Can there be a setting that will mimic what this v2 cog did?: https://cogs.red/cogs/ZeLarpMaster/ZeCogs/help_autodelete/

It let you set a time in seconds after which the help messages, along with the help command message that triggered the help response itself, would be deleted. This really helps to keep the chat clear of any unnecessary messages.

Can there be a setting that will mimic what this v2 cog did?: https://cogs.red/cogs/ZeLarpMaster/ZeCogs/help_autodelete/ It let you set a time in seconds after which the help messages, along with the help command message that triggered the help response itself, would be deleted. This really helps to keep the chat clear of any unnecessary messages.
mikeshardmind commented 2019-05-15 15:26:51 +02:00 (Migrated from github.com)

Can there be a setting that will mimic what this v2 cog did?: https://cogs.red/cogs/ZeLarpMaster/ZeCogs/help_autodelete/

It let you set a time in seconds after which the help messages, along with the help command message that triggered the help response itself, would be deleted. This really helps to keep the chat clear of any unnecessary messages.

Not in this particular PR, but I'll add it to the checklist issue.

> > > Can there be a setting that will mimic what this v2 cog did?: https://cogs.red/cogs/ZeLarpMaster/ZeCogs/help_autodelete/ > > It let you set a time in seconds after which the help messages, along with the help command message that triggered the help response itself, would be deleted. This really helps to keep the chat clear of any unnecessary messages. Not in this particular PR, but I'll add it to the checklist issue.
Kowlin (Migrated from github.com) reviewed 2019-05-15 16:36:40 +02:00
NeuroAssassin commented 2019-05-18 00:14:55 +02:00 (Migrated from github.com)

Thought I’d leave a comment about this here: So earlier, I was using help on my bot and it for some reason was returning the disabled message when I was using it. However, it worked fine for calling help on the ping command. Also, I was getting help on a category, not a command, so I knew that the command I was calling wasn’t disabled. I was able to solve this by disabling then re-enabling help, but thought it was pretty weird. I thought it was my editing red, until later when I was helping someone in the support channel. They also had been receiving this, but with every command. Help wasn’t disabled; they tried restarting the bot and doing what worked for me earlier; nothing. They also told us that it was only in one guild it was doing that, the others were fine. They said they had not edited red at all. I’m not sure what could be causing this, so I’m dropping it here for you to know.

Thought I’d leave a comment about this here: So earlier, I was using help on my bot and it for some reason was returning the disabled message when I was using it. However, it worked fine for calling help on the ping command. Also, I was getting help on a category, not a command, so I knew that the command I was calling wasn’t disabled. I was able to solve this by disabling then re-enabling help, but thought it was pretty weird. I thought it was my editing red, until later when I was helping someone in the support channel. They also had been receiving this, but with every command. Help wasn’t disabled; they tried restarting the bot and doing what worked for me earlier; nothing. They also told us that it was only in one guild it was doing that, the others were fine. They said they had not edited red at all. I’m not sure what could be causing this, so I’m dropping it here for you to know.
Kowlin (Migrated from github.com) approved these changes 2019-05-18 12:52:31 +02:00
wereii commented 2019-10-22 12:37:21 +02:00 (Migrated from github.com)

What @NeuroAssassin described here is what happens if your server has disabled DM. Interesting enough this happens only for me as the bot owner because I receive every possible help and according to this line it the tries to send DM once the output is too big.

Enabling DMs server wide works, but we don't want that here. If this fails, bot sends the error DM message set in #2681 but it should also offer the possibility to just drop the message in the current channel.

"...you blocked me or you disabled DMs in this server. You can :OK: this message to receive the help in this channel."

Btw if at least one server with you and the bot has DMs enabled If you have DMs enabled on at least one server you share with the bot this won't happen.

EDIT: words
EDIT2: After some digging. Disabling DMs from a server (Right click on server, Privacy settings) is user specific. Basically there is some smelly logic from discord that you can't "favorite" or "friend" bots so they could send you DMs without actually sharing any open DM server. Also If I had a lot of cogs with lot of public commands every user calling [p]help with DMs disabled everywhere will experience this issue.

What @NeuroAssassin described here is what happens ~if your server has disabled DM.~ Interesting enough this happens only for me as the bot owner because I receive every possible help and according to [this line](https://github.com/Cog-Creators/Red-DiscordBot/blob/ee293876d90cfa6ba180fe3dbceaa784a8859861/redbot/core/commands/help.py#L582) it the tries to send DM once the output is too big. ~Enabling DMs server wide works, but we don't want that here.~ If this fails, bot sends the error DM message set in #2681 but it should also offer the possibility to just drop the message in the current channel. >"...you blocked me or you disabled DMs in this server. You can :OK: this message to receive the help in this channel." Btw ~if at least one server with you and the bot has DMs enabled~ If you have DMs enabled on at least one server you share with the bot this won't happen. EDIT: words EDIT2: After some digging. Disabling DMs from a server (Right click on server, Privacy settings) is user specific. Basically there is some smelly logic from discord that you can't "favorite" or "friend" bots so they could send you DMs without actually sharing any open DM server. Also If I had a lot of cogs with lot of public commands every user calling [p]help with DMs disabled everywhere will experience this issue.
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!2676
No description provided.