[V3] Warnings cog issue #2106

Closed
opened 2018-09-07 23:21:26 +02:00 by evacfk · 9 comments
evacfk commented 2018-09-07 23:21:26 +02:00 (Migrated from github.com)

Command bugs

Command name

.warn

What cog is this command from?

Warnings

What were you expecting to happen?

When a user goes above the points threshold, the assigned action should occur.

What actually happened?

User gets warned and points get added however no action is issued.

How can we reproduce this issue?

Create a warnreason, assign it a point value and set that point value to ban a user.
Then warn the user.

Here's an example of what I have setup and the bot has done nothing to the user

http://evac.gg/i/pthl6.png

When setting up the action, i used:

ban {user}

# Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name .warn #### What cog is this command from? Warnings #### What were you expecting to happen? When a user goes above the points threshold, the assigned action should occur. #### What actually happened? User gets warned and points get added however no action is issued. #### How can we reproduce this issue? Create a warnreason, assign it a point value and set that point value to ban a user. Then warn the user. Here's an example of what I have setup and the bot has done nothing to the user http://evac.gg/i/pthl6.png When setting up the action, i used: ban {user}
PgoTracker commented 2018-09-08 09:59:08 +02:00 (Migrated from github.com)

Seems to be an issue with the mod cog not the warning cog. Entering the command myself +ban someusername gives a hierarchy error even if i turn off that check with modset heiarchy

Seems to be an issue with the mod cog not the warning cog. Entering the command myself +ban someusername gives a hierarchy error even if i turn off that check with modset heiarchy
mikeshardmind commented 2018-09-08 10:38:41 +02:00 (Migrated from github.com)

@useruser3 Not related to the mod cog. I cannot reproduce the behavior you are describing.

I also cannot reproduce a lack of warning actions actually being triggered.

@useruser3 Not related to the mod cog. I cannot reproduce the behavior you are describing. I **also** cannot reproduce a lack of warning actions actually being triggered.
PgoTracker commented 2018-09-08 12:51:03 +02:00 (Migrated from github.com)

@evacfk try restarting your bot. Resolved it for me

@evacfk try restarting your bot. Resolved it for me
evacfk commented 2018-09-08 22:59:09 +02:00 (Migrated from github.com)

Did not resolve for me.
On Sep 8, 2018, 3:51 AM -0700, useruser3 notifications@github.com, wrote:

@evacfk try restarting your bot. Resolved it for me
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Did not resolve for me. On Sep 8, 2018, 3:51 AM -0700, useruser3 <notifications@github.com>, wrote: > @evacfk try restarting your bot. Resolved it for me > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub, or mute the thread.
eaten-squid commented 2018-09-09 11:19:59 +02:00 (Migrated from github.com)

I'm able to reproduce this.

I'm able to reproduce this.
evacfk commented 2018-09-10 08:07:58 +02:00 (Migrated from github.com)

Updated to B21 and same issue exists. I've tried restarting bot, reloading warnings.

I don't see any errors, on bot startup I get

"Unknown event GUILD_INTEGRATIONS_UPDATE."

But that's it.

Updated to B21 and same issue exists. I've tried restarting bot, reloading warnings. I don't see any errors, on bot startup I get "Unknown event GUILD_INTEGRATIONS_UPDATE." But that's it.
palmtree5 commented 2018-09-10 10:20:58 +02:00 (Migrated from github.com)

That message is a discord.py issue (see Rapptz/discord.py/issues/1083)

That message is a discord.py issue (see Rapptz/discord.py/issues/1083)
elijabesu commented 2018-09-26 18:00:01 +02:00 (Migrated from github.com)

I also have the problem with the warning and also with the hierarchy

Some more info to the problem:
I have two roles for my V3: SauriBot and Owner's Baby Bots, where the second one is there purely just so the bot appears below Verified members while the first role is all the way above everyone (and is the one with all permissions). I also have set that after 3 warnings (= 3 points), the user shall be kicked out and if rejoined, after another one (4 points in total), the user shall be banned from the server. This, however, does not happen, as seen here. Also, the manual kick and ban with [p]kick <user> and [p]ban <user> give me an error whenever the user has higher role than Owner's Baby Bots, even tho it's below SauriBot, as seen here.

Those two basically go hand in hand together as the bot cannot kick the person, as seen here (tried it right now with my second account).

I also have the problem with the warning and also with the hierarchy Some more info to the problem: I have two roles for my V3: `SauriBot` and `Owner's Baby Bots`, where the second one is there purely just so the bot appears below Verified members while the first role is all the way above everyone (and is the one with all permissions). I also have set that after 3 warnings (= 3 points), the user shall be kicked out and if rejoined, after another one (4 points in total), the user shall be banned from the server. This, however, does not happen, [as seen here](https://cdn.discordapp.com/attachments/387398816317440000/492025505369948162/cats.jpg). Also, the manual kick and ban with `[p]kick <user>` and `[p]ban <user>` give me an error whenever the user has higher role than `Owner's Baby Bots`, even tho it's below `SauriBot`, [as seen here](https://cdn.discordapp.com/attachments/387398816317440000/492025514064609280/cats2.jpg). Those two basically go hand in hand together as the bot cannot kick the person, [as seen here](https://cdn.discordapp.com/attachments/483402230540533770/494545337290063872/unknown.png) (tried it right now with my second account).
Tobotimus commented 2018-10-11 23:19:02 +02:00 (Migrated from github.com)

Resolved by #2218.

Resolved by #2218.
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#2106
No description provided.