#AAA3A-Cogs

1 messages ยท Page 2 of 1

royal horizon
#

could it be because of python difference?

#

like you said, I am on python 3.8

#

if there is an easy way of simply updating to 3.11, I can do that instead

fervent cypress
#

There is Unicode characters in your channel mention...

royal horizon
#

discord does that # thing automatically

#

because you dont have that channel in your server it shows as unicode

fervent cypress
#

Try with the channel ID.

royal horizon
#

that worked but it doesnt specify channel

#

how do I know it worked?

#

tomorrow? ๐Ÿ˜›

fervent cypress
#
[p]reminder list
fervent cypress
#

And if you want use [p]reminder say instead, you can update the cog, also.

royal horizon
#

error again

fervent cypress
#

Yeah, I fixed this error in my last commit. ๐Ÿ˜… Just update the cog.

royal horizon
#

ok one sec

#

there we go

#

thanks for the help!

fervent cypress
#

Perfect, then. Ty for reporting these errors.

fervent cypress
oak lagoon
#

hey aaa3a how do i remove your aaa3a_utils?

#

its overloading my bots 1GB ram

#

ubuntu 22.04

oak lagoon
#

nevermind i removed the package manually from the redenv

fervent cypress
#

1GB ram?! Is it really possible?

oak lagoon
#

my bot was using 400mb ram before i installed your cogs now its 700+

#

i ran a command in your getdocs no response and a few minutes later the bot was offline

fervent cypress
#

The problem is my GetDocs cog, not the AAA3A_utils package...

#

You can use the cog without cache, if you want.

oak lagoon
#

is it fine to use your cogs without the AAA3A_utils?

fervent cypress
#

AAA3A_utils can't be the ram problem... And my cogs use it, so no.

oak lagoon
#

im gonna have to pass then

#

ill just find an alternative cog

fervent cypress
#

Why are you so desperate not to use this package?

#

For GetDocs, just use [p]setgetdocs caching False.

#

It's the principle of the cog to cache multiple documentations...

royal horizon
#

they only worked for a single day

#

this is how it looks but doesnt matter

#

or how it used to look rather

#

seems they got auto deleted after a single use

fervent cypress
oak lagoon
#

anyways sorry for taking your time

fervent cypress
#

Simply use [p]setgetdocs caching False, and no problem.

fervent cypress
fervent cypress
#

@royal horizon I've tested it (with a 5-minute interval) and it seems to work for me. Can you also try with a 5-minute interval to see if the reminder is removed?

fervent cypress
#

Okay, I will push my local modifications soon. And you can test it again.

#

You can update the cog and test again the same command.

fervent cypress
#

I imagine it was you who sent this error to my Sentry. Try the same command without quotes around time. And I still don't know why the attribute doesn't exist.

fervent cypress
young shell
#

Also I just sent an error to you

#
[17:29:35] ERROR    [red.AAA3A-cogs.TicketTool] Exception in [hybrid|text] command 'ticket create'.
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ /home/container/.local/lib/python3.11/site-packages/discord/ext/commands/cor โ”‚
โ”‚ e.py:229 in wrapped                                                          โ”‚
โ”‚ โฑ  229             ret = await coro(*args, **kwargs)                         โ”‚
โ”‚ /home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/CogManager โ”‚
โ”‚ /cogs/tickettool/tickettool.py:756 in command_create                         โ”‚
โ”‚ โฑ  756         await ticket.create()                                         โ”‚
โ”‚ /home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/CogManager โ”‚
โ”‚ /cogs/tickettool/ticket.py:339 in create                                     โ”‚
โ”‚ โฑ  339             await self.cog.create_modlog(self, "ticket_created", _rea โ”‚
โ”‚ /home/container/.local/share/Red-DiscordBot/data/pterodactyl/cogs/CogManager โ”‚
โ”‚ /cogs/tickettool/tickettool.py:598 in create_modlog                          โ”‚
โ”‚ โฑ  598             return await modlog.create_case(                          โ”‚
โ”‚ /home/container/.local/lib/python3.11/site-packages/redbot/core/modlog.py:10 โ”‚
โ”‚ 37 in create_case                                                            โ”‚
โ”‚ โฑ 1037         raise ValueError(f"{action_type} is not a valid action type." โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
ValueError: ticket_created is not a valid action type.
fervent cypress
#

I will check that.

young shell
#

Thanks

young shell
fervent cypress
fervent cypress
young shell
young shell
young shell
#

I sent the error again to you

fervent cypress
fervent cypress
# young shell

Uuh, the cog isn't reloaded after cog updating, right?

fervent cypress
young shell
fervent cypress
young shell
#

No error also creating seems to wwork I unloaded and reloaded

fervent cypress
# young shell No

In your screenshot, the files are updated, but the cog is not reloaded. Otherwise, weird...

young shell
fervent cypress
#

I don't see anything wrong.

young shell
#

Okay, Just making sure, Sometimes people will be confused with this window so thats why I'm asking

#

Nothing on your part, Just how I have seen some Discord users be idk the proper term without sounding mean lol

fervent cypress
#

You can disable it for closing tickets, but not for opening them. It's just a feature to provide a reason.

young shell
#

Yea I do not mind, I like it, Most people do not follow our ticket template so now this kinda makes them follow it.

#

Thank you for your help again

royal horizon
#

@fervent cypress

#

is it working as intended?

#

whats the SAMPLE?

fervent cypress
fervent cypress
# royal horizon whats the SAMPLE?

There are now several types of interval in my cog:

  • SAMPLE: time intervals such as every 1 day 3 hour and 2 minutes.
  • CRON: https://crontab.guru/
  • RRULE: time intervals such as every first Friday in January at 8:30 p.m. 2 times except May 5, 2024.
royal horizon
#

it wasnt removed, thats included in the screenshot

#

bot said test, then the reminder was still there

#

you got cron support? nice. thats what I used with fifo before

#

just using "on 4 June at 23h 30m every 1 day" now tho

fervent cypress
fervent cypress
fervent cypress
young shell
vocal tiger
#

Is the cog unable to make a FIFO for .reload or am I doing it wrong?

wheat dune
rugged bolt
#

I've been trying to use the reminder cog to send a certain command every day at a certain hour with cron but it doesn't seem like it's running the commands and the console is sending errors

#
โ”‚ >  90         if self.last_trigger > last_expires_at:                                                               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
TypeError: '>' not supported between instances of 'NoneType' and 'datetime.datetime'
#

also for some reason when I set the cog it made the time the command first runs 2:30 of the very next day although it was set for 19:30, and currently the next expires is also stuck in that hour even though it says it was 7 hours ago

fervent cypress
fervent cypress
fervent cypress
fervent cypress
fervent cypress
fervent cypress
fervent cypress
vocal tiger
fervent cypress
#

But what was your use case? This is generally bad practice.

fervent cypress
vocal tiger
fervent cypress
#

Leave the existing reminder, it will not be deleted.

vocal tiger
#

Oh I wasn't able to set a reminder in the first place

fervent cypress
#

What was the problem at this moment?

#

You can execute this eval, if you want. But it's not advisable to reload a cog automatically, especially every 15 minutes.

import datetime
from reminders.types import Reminder
reminder = Reminder.from_json({
    'id': 1,
    'jump_url': 
f'https://discord.com/channels/{ctx.guild.id}/{ctx.channel.id}/{ctx.message.id}',
    'content': {
        'type': 'command',
        'command': 'reload <cog>',
        'command_invoker': ctx.author.id
    },
    'destination': ctx.channel.id,
    'created_at': int(datetime.datetime.now(datetime.datetime.now(datetime.timezone.utc)).timestamp()),
    'expires_at': int((datetime.datetime.now(datetime.datetime.now(datetime.timezone.utc)) + datetime.timedelta(minutes=15)).timestamp()),
    'next_expires_at': int((datetime.datetime.now(datetime.datetime.now(datetime.timezone.utc)) + datetime.timedelta(minutes=15)).timestamp()),
    'repeat': [
        {
            'type': 'sample',
            'value': {'minutes': 15},
            'start_trigger': int((datetime.datetime.now(datetime.datetime.now(datetime.timezone.utc)) + datetime.timedelta(minutes=15)).timestamp()),
            'first_trigger': int((datetime.datetime.now(datetime.datetime.now(datetime.timezone.utc)) + datetime.timedelta(minutes=15)).timestamp()),
            'last_trigger': int(datetime.datetime.now(datetime.datetime.now(datetime.timezone.utc)).timestamp())
        }
    ]
})
await reminder.save()
vocal tiger
# fervent cypress What was the problem at this moment?

So, my internet will make the bot lose connection for a very brief moment every once in a while, making a specific cog or two stop working, so I was planning to use the reminder command to reload the cog every once in a while

#

How would I execute the eval? Through a command or a file?

fervent cypress
fervent cypress
vocal tiger
fervent cypress
rugged bolt
fervent cypress
#
[p]<command> at 18h every day <content>
vocal tiger
#

I tried making a reminder w/ CRON but the bot keeps saying this

#

This is what I used

#

Is this because I haven't done the eval thing yet?

fervent cypress
#

Because the cog isn't updated and the Cron interval seems to have only one trigger.

vocal tiger
#

Oh, I see

#

I used the website suggested to me to make a Cron interval but I guess I did it wrong (?)

fervent cypress
#

It's not standard, so maybe it's not supported...

vocal tiger
#

Understandable, the bot seemed to translate it properly so I thought it was okay

fervent cypress
#

I use one library to understand the Cron interval and another to translate it into English. I'll have to test... But what repeat time do you need?

vocal tiger
#

Either "every 2 minutes every hour" or "every 10 minutes every hour"

fervent cypress
#

Just use [p]reminder fifo every 2 minutes ping.

rugged bolt
fervent cypress
#

What error?

bronze lava
#

is it possible to set the reminder cog to the mountain time zone?

fervent cypress
#

You can use [p]reminder timezone <Country/Capital> to set your own timezone.

bronze lava
#

got it, ty PaluSmile

bronze lava
#

my bot doesn't seem to dm me reminders anymore? i made sure i have dms open

fervent cypress
#

Update the cog. I fixed an error two hours ago.

rugged bolt
fervent cypress
#

Yeah, I didn't understand this error before today. Fixed soon.

rugged bolt
fervent cypress
#

It's going to be fixed. I understood the problem.

fervent cypress
#

Fixed with fe3b488. Let me know if this is not the case. I was only able to reproduce this error on the console of a computer other than the host of my bot.

rich depot
#

warning a user now works with latest update - thank you for that

#

get an error when muting though

#
โ”‚ /home/pi/redenv/lib/python3.9/site-packages/discord/ui/view.py:427 in _scheduled_task                โ”‚
โ”‚ โฑ 427             await item.callback(interaction)                                                   โ”‚
โ”‚ /home/pi/.local/share/Red-DiscordBot/data/Slimer/cogs/CogManager/cogs/simplesanction/view.py:140 in  โ”‚
โ”‚ _callback                                                                                            โ”‚
โ”‚ โฑ 140         await action.process(self.ctx, member=self.member, duration=self.duration,             โ”‚
โ”‚       reason=self.reason, finish_message_enabled=self.finish_message_enabled,                        โ”‚
โ”‚       reason_required=await self.cog.config.guild(self.ctx.guild).reason_required(),                 โ”‚
โ”‚       confirmation=self.confirmation, show_author=self.show_author,                                  โ”‚
โ”‚       fake_action=self.fake_action)                                                                  โ”‚
โ”‚ /home/pi/.local/share/Red-DiscordBot/data/Slimer/cogs/CogManager/cogs/simplesanction/types.py:129 in โ”‚
โ”‚ process                                                                                              โ”‚
โ”‚ โฑ 129             command = command.format(member=member,                                            โ”‚
โ”‚       duration=str(parse_timedelta(duration)) if duration is not None else None,                     โ”‚
โ”‚       reason=reason, channel=ctx.channel)                                                            โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
KeyError: 'user'
#

I still love this Cog and cant wait for my it to become our admin's go-to

fervent cypress
#

I'll fix that. The last update was a redesign of the cog. There are no additional features, but the code is better and more manageable.

fervent cypress
rich depot
#

thank you

tardy nest
#

Is there any way to set the reminder cog to default to sending [p]remind reminders to a specific channel, no matter what channel in the server it was started from?

fervent cypress
#

You can specify a channel in the [p]remind command. But there's no real way to set a default channel. But you can use the cog Alias (Red) with [p]alias add <command_name> remind <default_destination>.

sterile herald
#

Hey ^^ i get the error that i use a wrong emoji (or from a other server without nitro) but use the default โ— Emoji in DropDownsTexts any clue i do wrong?

fervent cypress
#

I will check.

fervent cypress
sterile herald
#

Ahh Thx ^^

fervent cypress
#

This feature has already been requested several times, so I'd like to inform you that CommandsButtons, DropdownsTexts, RolesButtons and URLButtons will no longer require an emoji and will be able to use the same emoji several times.

sterile herald
#

Hey me again maybe this time with a issue form my side so i get this error when i try to load tickettool ^^

Exception during loading of package
Traceback (most recent call last):
  File "/root/redenv/lib/python3.9/site-packages/redbot/core/core_commands.py", line 188, in _load
    await bot.load_extension(spec)
  File "/root/redenv/lib/python3.9/site-packages/redbot/core/bot.py", line 1686, in load_extension
    await lib.setup(self)
  File "/root/.local/share/Red-DiscordBot/data/flixbot/cogs/CogManager/cogs/tickettool/__init__.py", line 44, in setup
    await cog.cogsutils.add_cog(bot)
  File "/root/.local/share/Red-DiscordBot/data/flixbot/cogs/Downloader/lib/AAA3A_utils/cogsutils.py", line 102, in add_cog
    await value
  File "/root/redenv/lib/python3.9/site-packages/redbot/core/bot.py", line 1907, in add_cog
    await super().add_cog(cog, guild=guild, guilds=guilds)
  File "/root/redenv/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 783, in add_cog
    cog = await cog._inject(self, override=override, guild=guild, guilds=guilds)
  File "/root/redenv/lib/python3.9/site-packages/discord/ext/commands/cog.py", line 682, in _inject
    await maybe_coroutine(self.cog_load)
  File "/root/redenv/lib/python3.9/site-packages/discord/utils.py", line 688, in maybe_coroutine
    return await value
  File "/root/.local/share/Red-DiscordBot/data/flixbot/cogs/CogManager/cogs/tickettool/tickettool.py", line 232, in cog_load
    await modlog.register_casetype("ticket_created", default_setting=True, image="๐ŸŽŸ๏ธ", case_str="New Ticket")
  File "/root/redenv/lib/python3.9/site-packages/redbot/core/modlog.py", line 1211, in register_casetype
    raise RuntimeError("That case type is already registered!")
RuntimeError: That case type is already registered!
fervent cypress
#

Ah... we can't record the same case several times... I will fix this.

fervent cypress
#

Also... A number of users have already asked to be able to specify no emoji or to choose different ones in CommandsButtons, DopdownsTexts, RolesButtons and UrlButtons, and this has now been done! For each of these cogs, a [p]<command> list <message> command has been added to list the buttons and show their settings.

sterile herald
#

Is the Dropdown feature removed from tickettools? ^^ยฐ because i don't get that one anymore ^^ยฐ

#

For test purposes only i copyed the example and tryed it (need an update because .setticket is not working) and i get a button for creating a ticket not a drop down menu ^^ยฐ like here

fervent cypress
#

Uuh, normally not...

sterile herald
#

maybe smth wrong on my side? did i forget smth?

fervent cypress
#

In fact, there is a , in the descriptions. I will remove it in the converter...

sterile herald
#

is the problem the , in the converter? ^^

fervent cypress
#

Yeah, but I removed it in the converter, so that works now.

sterile herald
#

ok will try it ^^

balmy lodge
#

hi
aaa when you're on pls check the
1. seen migratefromseencmd, its erroring with:

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: '>' not supported between instances of 'int' and 'dict'

2. On edittextchannel permissions when changing the permissions on roles it's not able to change the perms but it replies with:

โš ๏ธ You cannot change the permissions of a role lower down the hierarchy than your top role.
Which doesn't even make any sense,

  1. On edittextchannel permissionswhen changing the permissions on member its throwing an error:
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: '<=' not supported between instances of 'Member' and 'Role'
rocky talon
fervent cypress
balmy lodge
#

edited

fervent cypress
balmy lodge
# fervent cypress Can you send the complete traceback, please?

Traceback on seen migratefromseen

Exception in command 'seen migratefromseen'
Traceback (most recent call last):
  File "/home/ubuntu/dpy2env/lib/python3.11/site-packages/discord/ext/commands/core.py", line 229, in wrapped
    ret = await coro(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/data/astra2/cogs/CogManager/cogs/seen/seen.py", line 1485, in migratefromseen
    if "message" not in new_users_data[int(member_id)] or data["seen"] > new_global_data["message"][new_users_data[int(member_id)]["message"]]:
                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'int' and 'dict'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ubuntu/dpy2env/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
    await ctx.command.invoke(ctx)
  File "/home/ubuntu/dpy2env/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 783, in invoke
    await super().invoke(ctx)
  File "/home/ubuntu/dpy2env/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1642, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/home/ubuntu/dpy2env/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1023, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/dpy2env/lib/python3.11/site-packages/discord/ext/commands/core.py", line 238, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: '>' not supported between instances of 'int' and 'dict'
balmy lodge
fervent cypress
#

Thanks for reporting these errors.

  1. Fixed with 34e5139.
  2. and 3. Fixed with 151d988.
balmy lodge
#

No probs!

  1. fixed.

  2. & 3. No error but still not able to change the perms on roles/members (while user's highest role is way above the role that they are changing )

fervent cypress
#

What does that mean?

rocky talon
fervent cypress
#

No problem. I've made a lot of changes with my review. I need to correct any errors before any new changes are required because of this.

balmy lodge
# fervent cypress What does that mean?

That means,
You cannot change the permissions of a channel even if you do have perms (since it checks admin perms ) to change and the role is below you & bot's highest role in role hierarchy

fervent cypress
#

Ah yes, I reversed the condition of the role's place...

#

Fixed.

autumn timber
#

maybe I am being dumb - but how do I get a reminders reminder to go DM instead of channel?

balmy lodge
#

aaa
Getting errors on passing remind 1m or remindme 1m without passing any reason reason/text

You can check the events, for more info on actual error

  • 4b8fe1fda35a493bbdacdee438e54436
  • 2dd77daf0590402397a283c6c5c3c3fd
autumn timber
#

Oh you may have inadvertently answered my question

fervent cypress
balmy lodge
#

Nice and no probs thumbs_up

balmy lodge
#

Noticed two more things,

Reminders are getting a min delay, so if you set a reminder for 1min you'll get the actual reminding message after 2 mins from the time you set.
And that is same on both the remind & remindme cmds

fervent cypress
#

All reminders work in the same way, so tge problem happens for alls.

#

I need to check whether the minute indicated in the reminder (Edit Reminder button) is the time in 1 or 2 minutes.

balmy lodge
#

So, say you run the reminder cmd or add the reminder at 15:59:30 seconds (2023-06-17T15:59:30.976224+00:00)
So you should be getting the reminding ping/DM at 16:00:31 seconds (2023-06-17T16:00:31.976224+00:00)

But in reality it doesn't stop at there ^ where it supposed to stop i.e. 2023-06-17T16:00:31.976224+00:00, it circles the whole min and stops/pings you at16:00:59 nearly at 16:01:00 (2023-06-17T16:00:59.976224+00:00)

It'd be same in any combination, and since its closing the loop at x:x:59 regardless of when you set the reminder, you end up getting a significant delay (a min)

balmy lodge
bronze lava
#

trying to edit the time for a reminder but it gives me an error. did i input it wrong?

fervent cypress
#

Verify that the ISO date is correct. This is the same time converter as for commands.

#

Ah, it's +06:00.

fervent cypress
#

In Reminders, would it be useful to allow multiple mentions of roles/users in [p]remind? Or allow this command for normal users if there are less than 3 user mentions? Should [p]reminder remove be able to remove several reminders at once? Added with fb1ee38.

wheat dune
fervent cypress
fervent cypress
#

Does the problem occur when you specify times directly or also when you specify precise durations?

balmy lodge
#

when specifying time as in 1m 2m 10m etc any combination

#

but you notice the delay only when if you run the cmd in between a min,

balmy lodge
#

Web request cant be an issue, atleast from the testing cuz it was barely 5-6 reminders

fervent cypress
#

What command do you use that would allow me to test the problem?

balmy lodge
#

just remind or remindme lets come to the testing channel
do we have the bot here

fervent cypress
#

Okay.

bronze lava
bronze lava
#

tried editing a title of a reminder and it also tells me there was an error. i think the edit command is bugged in general veli_thonk

fervent cypress
#

What is the error?

bronze lava
#

it says this

#

no matter which part i edit it says that

fervent cypress
#

Find an error on the console.

fervent cypress
#

@balmy lodge I finally gave up on the idea of a loop every 15 seconds. 1 minute of precision is enough in most cases. 15 seconds slowed down a bot enormously.

balmy lodge
#

i didnt notice much of slowed down issue honestly

#

Maybe cuz i have enough mem, so didnt bother to check the usage

fervent cypress
#

It affects a big bot. But it's only a few seconds (reminders advance, I mean)...

balmy lodge
#

ah hmm, lets see

bronze lava
# fervent cypress Find an error on the console.

AttributeError: 'ReminderView' object has no attribute 'embeds' Jun 19 09:05:22 ubuntu-s-1vcpu-1gb-nyc1-01 python[100796]: [2023-06-19 09:05:22] [ERROR] discord.ui.modal: Ignoring exception in modal <Ed> Jun 19 09:05:22 ubuntu-s-1vcpu-1gb-nyc1-01 python[100796]: Traceback (most recent call last): Jun 19 09:05:22 ubuntu-s-1vcpu-1gb-nyc1-01 python[100796]: File "/root/redenv/lib/python3.11/site-packages/discord/ui/modal.py", line 18> Jun 19 09:05:22 ubuntu-s-1vcpu-1gb-nyc1-01 python[100796]: await self.on_submit(interaction) Jun 19 09:05:22 ubuntu-s-1vcpu-1gb-nyc1-01 python[100796]: File "/root/koromaru/cogs/CogManager/cogs/reminders/views.py", line 131, in o> Jun 19 09:05:22 ubuntu-s-1vcpu-1gb-nyc1-01 python[100796]: if embed.description != self._parent.embeds[0].description: Jun 19 09:05:22 ubuntu-s-1vcpu-1gb-nyc1-01 python[100796]: ^^^^^^^^^^^^^^^^^^^

fervent cypress
#

Fixed with 15ba845.

bronze lava
#

it works, ty! LumSmile

sterile herald
#

Hey i get this error when i try to use Urlbuttons (with [p] or /)
1/2

Traceback (most recent call last):
  File "{HOME}/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 229, in wrapped
    ret = await coro(*args, **kwargs)
  File "{HOME}/.local/share/Red-DiscordBot/data/flixbot/cogs/CogManager/cogs/urlbuttons/urlbuttons.py", line 148, in add
    view = self.get_buttons(config, message)
  File "{HOME}/.local/share/Red-DiscordBot/data/flixbot/cogs/CogManager/cogs/urlbuttons/urlbuttons.py", line 304, in get_buttons
    if config[message][config_identifier]["emoji"] is not None:
KeyError: <Message id=1120423942948143104 channel=<TextChannel id=1097112372499464232 name='๏ธฑ:clipboard:ใƒป๐— ๐—ผ๐—ฑ-๐—Ÿ๐—ถ๐˜€๐˜๐—ฒ' position=9 nsfw=False news=False category_id=1091149929109532732> type=<MessageType.default: 0> author=<Member id=1029869343963627612 name='FLIX แต‡แต‰แต—แตƒ' discriminator='8835' bot=True nick='Professor Status' guild=<Guild id=1090959579044659201 name='Minecraft Shinymon' shard_id=0 chunked=True member_count=47>> flags=<MessageFlags value=0>>
#

2/2

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "{HOME}/redenv/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
    await ctx.command.invoke(ctx)
  File "{HOME}/redenv/lib/python3.9/site-packages/redbot/core/commands/commands.py", line 783, in invoke
    await super().invoke(ctx)
  File "{HOME}/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 1642, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "{HOME}/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 1023, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
  File "{HOME}/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 238, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: <Message id=1120423942948143104 channel=<TextChannel id=1097112372499464232 name='๏ธฑ:clipboard:ใƒป๐— ๐—ผ๐—ฑ-๐—Ÿ๐—ถ๐˜€๐˜๐—ฒ' position=9 nsfw=False news=False category_id=1091149929109532732> type=<MessageType.default: 0> author=<Member id=1029869343963627612 name='FLIX แต‡แต‰แต—แตƒ' discriminator='8835' bot=True nick='Professor Status' guild=<Guild id=1090959579044659201 name='Minecraft Shinymon' shard_id=0 chunked=True member_count=47>> flags=<MessageFlags value=0>>
fervent cypress
#

Fixed with eab6eea.

sterile herald
#

Thx! ^^

hoary slate
#

hey @fervent cypress is it possible to change this section?

fervent cypress
#

Not possible, but you can use a custom message who will be sent in the channel after this.

upbeat estuary
#

aaa after the last update of rolesbuttons the buttons which are previously added arent working anymore
upon reacting i keep getting interaction failed

fervent cypress
#

Find an error on the console please.

upbeat estuary
#

I tried to do that but no error
so upon reacting it doesnt throw any errors
so i am just adding all of them again

fervent cypress
#

I'm working with Vert to integrate my cogs (others can also do it with their cogs) into its cog Assistant, with customized functions!
This means that some of my cogs can communicate information to OpenAI in relation to their main functions!
Here are the cogs that already have this integration:

  • Dictionary: Get meanings, definition, synonyms and antonyms in the English Dictionary.
  • GetDocs: Get the documentation of Python objects from the cog's enabled sources. ChatGPT responses will be more accurate with this valuable data.
  • GetLoc: Get display name, coordinates, country, state, region, city, post code of a location, from a query.
  • Minecraft: Get description, current status, players number and protocol version of a Minecraft Java server.
  • Recipes: Get a recipe from Food52, including name, description, yield, preparation time, cook time, ingredients list and instructions.
  • Reminders: Get your next 5 reminders. Chat GPT can give you the informations you need. Perhaps we'll soon be able to create reminders from within Assistant. :-)
  • TicketTool: Get your open tickets in the current server, with the ticket ID, the channel mention and the original reason.
swift gulch
#

I have two reminders that I set up using reminders say and set their repeat rule using cron. however, it seems like they are being run offset by a whole day?

#

sorry, that image is actually after i edited the reminder rule for the 2nd reminder to plaintext every Tuesday at 11am to see if it would update the "Next Expires at" date.

#

this is what it was before. the second reminder actually just ran today so I'm wondering if there's something up.

fervent cypress
#

I guess the problem is that the next execution is on a Wednesday instead of a Tuesday? Can you send a screenshot of the executed command? Have you set your timezone (which Cron uses)?

swift gulch
#

these are the commands i entered (and now see that they were offset from the beginning)

#

i just set my timezone, should I delete the reminders and set them again?

fervent cypress
fervent cypress
swift gulch
#

ok, this was the format that crontab.guru didn't yell at me for being non-standard lol

#

i'll try MON,WED,etc instead of 1,3,etc

fervent cypress
#

Two different modules are used in my cog: one to describe the Cron intervals in English (and which seems to understand everything) and another to calculate the next occurrences. I'll try to find another module.

swift gulch
#

ok, i set them up again and it looks like it's calculating the next occurance correctly (using SUN,MON,WED instead of 0,1,3)

fervent cypress
#

In fact, Tuesday seems to be 1.

swift gulch
#

that's wild

sterile herald
#

Just a question: is there a possibility for your Minecraft cog to update the original embed instead of posting a new embed for each change? ^^

fervent cypress
#

Ah, I'll think about adding this feature. I originally coded it for my private use because I wanted to be notified when friends connected to a specific Minecraft server, so I needed new messages.

sterile herald
#

It's fine! I like the cog so it would be nice if this feature gets implement or a option to switch to that ^^ would be awesome!

fervent cypress
#

Use [p]minecraft editlastmessage #channel True.

sterile herald
#

OHHH Thx!

sterile herald
# fervent cypress Use `[p]minecraft editlastmessage #channel True`.
Exception during loading of package:

Traceback (most recent call last):
  File "{HOME}/redenv/lib/python3.9/site-packages/redbot/core/core_commands.py", line 188, in _load
    await bot.load_extension(spec)
  File "{HOME}/redenv/lib/python3.9/site-packages/redbot/core/bot.py", line 1686, in load_extension
    await lib.setup(self)
  File "{HOME}/.local/share/Red-DiscordBot/data/flixbot/cogs/CogManager/cogs/minecraft/__init__.py", line 43, in setup
    cog = Minecraft(bot)
  File "{HOME}/.local/share/Red-DiscordBot/data/flixbot/cogs/CogManager/cogs/minecraft/minecraft.py", line 84, in __init__
    self.config.register_channel(**self.minecraft_channel)
  File "{HOME}/redenv/lib/python3.9/site-packages/redbot/core/config.py", line 880, in register_channel
    self._register_default(self.CHANNEL, **kwargs)
  File "{HOME}/redenv/lib/python3.9/site-packages/redbot/core/config.py", line 822, in _register_default
    self._update_defaults(to_add, self._defaults[key])
  File "{HOME}/redenv/lib/python3.9/site-packages/redbot/core/config.py", line 805, in _update_defaults
    raise KeyError("You cannot register a Group and a Value under the same name.")
KeyError: 'You cannot register a Group and a Value under the same name.'
fervent cypress
#

Restart your bot. Defaults are stored in Red Config cache.

sterile herald
#

Thx! ^^

naive siren
#

Getting weird permissions errors when attemtping to claim, close, or delete a ticket, also getting errors when creating new tickets using the ticket tool:

You can send this error to the developer by running the following command:
+AAA3A_utils senderrorwithsentry c764129c52e34aff8812b3a2f76c66d0```
#

full error output:

  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 229, in wrapped
    ret = await coro(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/CogManager/cogs/tickettool/tickettool.py", line 771, in command_create
    await ticket.create()
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/CogManager/cogs/tickettool/ticket.py", line 327, in create
    CogsUtils.views.append(view)
    ^^^^^^^^^^^^^^^
AttributeError: type object 'CogsUtils' has no attribute 'views'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
    await ctx.command.invoke(ctx)
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 783, in invoke
    await super().invoke(ctx)
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1642, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1023, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 238, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: type object 'CogsUtils' has no attribute 'views'```
fervent cypress
#

Yeah, I did a big update for my utils yesterday. It's fixed now, with 3fd8577.

fervent cypress
naive siren
#

Just saying i couldn't close, claim or delete due to permissions

#

I jsut restarted now cog wont load :

    await bot.load_extension(spec)
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1680, in load_extension
    lib = spec.loader.load_module()
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 605, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 1120, in load_module
  File "<frozen importlib._bootstrap_external>", line 945, in load_module
  File "<frozen importlib._bootstrap>", line 290, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/CogManager/cogs/tickettool/__init__.py", line 8, in <module>
    import AAA3A_utils
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/__init__.py", line 1, in <module>
    from .cog import Cog
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/cog.py", line 17, in <module>
    from .dev import DevEnv
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/dev.py", line 44, in <module>
    from .shared_cog import SharedCog
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/shared_cog.py", line 34, in <module>
    from AAA3A_utils.cog import Cog
ImportError: cannot import name 'Cog' from partially initialized module 'AAA3A_utils.cog' (most likely due to a circular import) (/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/cog.py)```
#

unless you just pushed an update in the last 5 minutes?

fervent cypress
#

In the last 5 minutes, yes.

naive siren
#

ok, let me update

fervent cypress
#

I saw the error on my Sentry.

fervent cypress
naive siren
#

Just errors at restart now when attempting to load the cog:

Traceback (most recent call last):
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/core_commands.py", line 188, in _load
    await bot.load_extension(spec)
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1680, in load_extension
    lib = spec.loader.load_module()
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 605, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 1120, in load_module
  File "<frozen importlib._bootstrap_external>", line 945, in load_module
  File "<frozen importlib._bootstrap>", line 290, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/CogManager/cogs/tickettool/__init__.py", line 8, in <module>
    import AAA3A_utils
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/__init__.py", line 1, in <module>
    from .cog import Cog
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/cog.py", line 17, in <module>
    from .dev import DevEnv
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/dev.py", line 44, in <module>
    from .shared_cog import SharedCog
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/shared_cog.py", line 34, in <module>
    from AAA3A_utils.cog import Cog
ImportError: cannot import name 'Cog' from partially initialized module 'AAA3A_utils.cog' (most likely due to a circular import) (/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/Downloader/lib/AAA3A_utils/cog.py)```
naive siren
balmy lodge
#

aaa
So currently all of your cog, uses their own error message, instead of red's core error message as a separate system.
Now, the problem with this is, whenever if a command errors, it throws two error messages in the channel,

1. Cogs error message. (Error in [command] command...)
2. Red's own error message. (Error in command 'cmd'... check console)
It also throws a bunch of other msgs when the command invoker is a bot owner.

Since, red has it's own error message which you can even customize it via set errormsg, so i think it'd be better if you could use that instead,

Reason behind this is,

a. Normal users mostly don't understand what it's saying. other than knowing the command that they were trying didn't execute well. (which is enough)
b. Since the cog/command error message is for the bot owner/developer to investigate they don't need that 2nd error msg either, since they already have it logged and can see & will report it as well.
c. Throwing two error messages doesn't look good atall, (consider if you're using a customerror msg which already throws enough info on what's the error, who invoked etc)
So, I think it'd a much better experience [QOL] when using your utility commands, without it.

fervent cypress
fervent cypress
naive siren
#

Looks good now, but for some reason the Delete button does nothing now?

#

Yeah, clicking the Delete button on newly made tickets (Made after recent update) or older tickets (Made before update) just does nothing at all, no error or anyhting

fervent cypress
#

Not error on the console?

naive siren
#

Nothing at all

#

just "Presses" and nothing

#

Not even a red interaction error

fervent cypress
#

Others buttons work?

naive siren
#

looks so

#

it also started "Adding" people to the thread when made? thats totally new to me

#

It has added them before, but never listed them like that previous to the update

#

Yes, confirmed can claim and close

#

just can not delete

fervent cypress
naive siren
#

Well they are all people with the support or admin role, so they Should be added, i just had never seen the bot list them being added to the thread

fervent cypress
# naive siren just can not delete

Same on my bot. But my bot gives an error on the console.

โ”‚ โฑ 1348             ctx = await CogsUtils.invoke_command(                                                             โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
TypeError: CogsUtils.invoke_command() missing 1 required positional argument: 'command'
#

It's a typo. The argument name was ommand in my code. ๐Ÿ˜…

naive siren
#

Ahh i see, it wasn't pinging the error, had to actially load the error log

Traceback (most recent call last):
  File "/root/redenv/lib/python3.11/site-packages/discord/ui/view.py", line 427, in _scheduled_task
    await item.callback(interaction)
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/CogManager/cogs/tickettool/tickettool.py", line 1348, in on_button_interaction
    ctx = await CogsUtils.invoke_command(
                ^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: CogsUtils.invoke_command() missing 1 required positional argument: 'command'
[2023-06-23 16:51:51] [ERROR] discord.ui.view: Ignoring exception in view <View timeout=None children=3> for item <Button style=<ButtonStyle.secondary: 2> url=None disabled=False label='Delete' emoji=<PartialEmoji animated=False name='โ›”' id=None> row=None>
Traceback (most recent call last):
  File "/root/redenv/lib/python3.11/site-packages/discord/ui/view.py", line 427, in _scheduled_task
    await item.callback(interaction)
  File "/root/.local/share/Red-DiscordBot/data/LittleBot/cogs/CogManager/cogs/tickettool/tickettool.py", line 1348, in on_button_interaction
    ctx = await CogsUtils.invoke_command(
                ^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: CogsUtils.invoke_command() missing 1 required positional argument: 'command'```
#

usually i have it throw errors into a specific channel, this didn't trigger that i guess

fervent cypress
#

Fixed with 250d0aa, so.

naive siren
#

Cool, let me update

#

There we go, delete works again. Thanks for the quick fixes

fervent cypress
#

Hello everyone,

I am now an approved cogs creator!

I wanted to thank you for installing my cogs even if they were unapproved and reporting the (many) errors you found!

modest nacelle
#

GRATS!

rich depot
#

Congratulations on getting approved

#

You have a lot of great work

fierce jacinth
#

Congratulations!!!!

#

Now you just need a channel thanospogger

fervent cypress
#

Yeah, I will ask for it tomorrow.

#

It's 4:40 in the morning for me. I haven't logged off because I was fixing the last problems in my review.

fierce jacinth
#

Definitely save a copy of your pin so you don't have to retype it lol

#

Yikes, and here I thought I had sleep problems

fervent cypress
fierce jacinth
#

Lol

#

Well I have work in about 5 hours I should probably sleep. Ironically at 5am lol.
Congratulations again!

fervent cypress
#

Thank you for using my cogs. :P

balmy lodge
#

AYY congrats aaa
you deserve it,

woeful island
#

Congrats vibef vibef

woeful island
# fervent cypress It's 4:40 in the morning for me. I haven't logged off because I was fixing the l...

Mm you may be french like me hehe,

Anyway when I'm trying to load tickettool I have this error

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ             โ”‚ /home/stella/redenv/lib/python3.11/site-packages/redbot/core/core_commands.py:188 in _load                           โ”‚             โ”‚ โฑ  188                 await bot.load_extension(spec)                                                                โ”‚
โ”‚ /home/stella/redenv/lib/python3.11/site-packages/redbot/core/bot.py:1686 in load_extension                           โ”‚
โ”‚ โฑ 1686             await lib.setup(self)                                                                             โ”‚             โ”‚ /home/stella/.local/share/Red-DiscordBot/data/Starbot/cogs/CogManager/cogs/tickettool/__init__.py:46 in setup        โ”‚             โ”‚ โฑ 46     await bot.add_cog(cog)                                                                                      โ”‚
โ”‚ /home/stella/redenv/lib/python3.11/site-packages/redbot/core/bot.py:1907 in add_cog                                  โ”‚
โ”‚ โฑ 1907             await super().add_cog(cog, guild=guild, guilds=guilds)                                            โ”‚             โ”‚ /home/stella/redenv/lib/python3.11/site-packages/discord/ext/commands/bot.py:783 in add_cog                          โ”‚             โ”‚ โฑ  783         cog = await cog._inject(self, override=override, guild=guild, guilds=guilds)                          โ”‚
โ”‚ /home/stella/redenv/lib/python3.11/site-packages/discord/ext/commands/cog.py:682 in _inject                          โ”‚             โ”‚ โฑ 682         await maybe_coroutine(self.cog_load)                                                                   โ”‚             โ”‚ /home/stella/redenv/lib/python3.11/site-packages/discord/utils.py:688 in maybe_coroutine                             โ”‚             โ”‚ โฑ  688         return await value                                                                                    โ”‚
โ”‚ /home/stella/.local/share/Red-DiscordBot/data/Starbot/cogs/CogManager/cogs/tickettool/tickettool.py:228 in cog_load  โ”‚             โ”‚ โฑ  228         await self.edit_config_schema()                                                                       โ”‚             โ”‚ /home/stella/.local/share/Red-DiscordBot/data/Starbot/cogs/CogManager/cogs/tickettool/tickettool.py:309 in           โ”‚             โ”‚ edit_config_schema                                                                                                   โ”‚             โ”‚ โฑ  309         self.log.info(                                                                                        โ”‚             โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ             AttributeError: 'TicketTool' object has no attribute 'log'
#

Does it already be fixed (so I'm blind xD) ?

fervent cypress
woeful island
#

I didn't know so I rebooted the bot, and now it work sorry for the ping MenheraOopsie2

fervent cypress
#

Perfect, then. :P

#

And yeah, I"m french.

woeful island
# fervent cypress And yeah, I"m french.

Yay yen a trรจs peu qui bosse ou utilise red, c'est cool je me sens moin seul xD
||Yay there are very few who work or use red, it's cool I feel less alone xD||

hushed patrol
#

(sorry)

fervent cypress
#

Uuh, what?

upbeat estuary
#

Congratulations AAA

balmy lodge
#

Hey aaa,
I think there may have been an oversight! Thonk
You cant change a channel permissions for yourself, if you have the permissions and you're higher in role hierarchy? but you can change perms for below you!

  • Being able to change perms for users/roles below you is fine, no issue.

Say I have admin perms, and i wanna change a channel permission for myself, but I can't! (even tho i can change every perms for anyone including myself)

sterile herald
#

Congrats! To get โœ… ^^

#

When I do [p]slash sync I get an error for Tickettool

fervent cypress
#

I will check.

fervent cypress
ivory remnant
balmy lodge
fervent cypress
#

So what should be checked? That the user is an administrator on the server?

fervent cypress
fervent cypress
#

Has anyone not updated my cogs for more than two days? I need him to start his bot with the --debug cli flag and retrieve the Downloader/PIP logs when the cog is updated.

autumn vapor
#

[p]editfile findcog [cogname] always returns "Could not find a cog with this name." for me

fervent cypress
#

You have to use the CogName with correct caps.

#

For example, editfile is EditFile.

autumn vapor
#

ah thanks, that works indeed

balmy lodge
# fervent cypress So what should be checked? That the user is an administrator on the server?

Well currently the command edittextchannel perms checks manager_role in user (in addition to Manage Channels, Admin from the main cmd editextchannel) right!

So if a user does have permissions to run the edittextchannel perms command i.e. if they satisfy the command's check then they just need be allowed to change the channel permissions for themselves & their toprole

And the command already allow users to change channel permissions for other users & roles below them, which is working just fine no issue btw, so why not allowing it for themselves as well

fervent cypress
#

I've just got my own channel to support my cogs! This thread will no longer be used and all support requests must be redirected to #support_aaa3a-cogs! Thank you for your understanding.