BeeHiveCyberSecurity / BeeHive-Cogs

High-quality cogs for Red-DiscordBot that you can install and use with little-to-no hassle.
https://www.beehive.systems/
GNU General Public License v3.0
5 stars 4 forks source link

(Bug) Invites tracks other servers invites in main server #10

Open DJTOMATO opened 1 week ago

DJTOMATO commented 1 week ago

Describe the bug When a user uses an invite in any other server, it will announce it in server 1 (or the first server setted up), even if those users are not part of server 1. it doesn't make sense.

To Reproduce Steps to reproduce the behavior: Have the cog installed in a bot with 2 or more servers The cog will report invites made in server 2 (or the second server) IN the 1st server.

Expected behavior Report invites in server 1? excluding additional servers?

Screenshots OPkaBO3H7Yyo

Additional context


    "1234567890": {
        "GUILD": {
            "1303341624x565396": { # SERVER 1
                "rewards": {
                    "10": 13035568xxxx8855676,
                    "15": 1303555xxx50573373,
                    "5": 13035568xxxx8423536
                },
                "announcement_channel": 1303535264022396978,
                "member_growth": [
                    [
                        "2024-11-06T04:57:44.260665+00:00",
                        6
                    ],
                    [
                        "2024-11-06T06:06:12.447054+00:00",
                        7
                    ],
                    [
                        "2024-11-13T00:47:43.435015+00:00",
                        10
                    ]
                ]
            },
            "24247928xxx49632": { # SERVER 2
                "member_growth": [
                    [
                        "2024-11-13T21:15:15.069857+00:00",
                        25
                    ],
                    [
                        "2024-11-13T21:16:19.951279+00:00",
                        26
                    ]
                ],
                "invites": {
                    "197554xxxxx176": 1
                }
            }
        }
    }
}```
BeeHiveCyberSecurity commented 1 week ago

Oof, this isn't meant to be happening.

Looking into this now, thank you for the report.

DJTOMATO commented 1 week ago

Oof, this isn't meant to be happening.

Looking into this now, thank you for the report.

Thanks for the swift response! <3

BeeHiveCyberSecurity commented 1 week ago

Of course! The invites cog is not one of our most frequently maintained so, it was overdue for some updates and bug fixes. You're welcome to pull updates as you see them appear, and you'll get another comment from us here with a change summary once we know your issue is fixed.

Thanks for using our cogs :)