#AAA3A-Cogs
1 messages ยท Page 2 of 1
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
There is Unicode characters in your channel mention...
no?
discord does that # thing automatically
because you dont have that channel in your server it shows as unicode
Try with the channel ID.
that worked but it doesnt specify channel
how do I know it worked?
tomorrow? ๐
[p]reminder list
Yeah, also. 
And if you want use [p]reminder say instead, you can update the cog, also.
Yeah, I fixed this error in my last commit. ๐ Just update the cog.
Perfect, then. Ty for reporting these errors.
I will specify it.
hey aaa3a how do i remove your aaa3a_utils?
its overloading my bots 1GB ram
ubuntu 22.04
nevermind i removed the package manually from the redenv
1GB ram?! Is it really possible?
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
The problem is my GetDocs cog, not the AAA3A_utils package...
You can use the cog without cache, if you want.
is it fine to use your cogs without the AAA3A_utils?
AAA3A_utils can't be the ram problem... And my cogs use it, so no.
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...
hello again. the reminders arent repeating everyday
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
I'll do some tests. Sorry.
well my ram usage went down when i removed the package
anyways sorry for taking your time
Simply use [p]setgetdocs caching False, and no problem.
Can you test with [p]reminder say "every 5 minutes" test? And see if the reminder is deleted.
@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?
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.
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.
For this error, try:
[p]pipinstall --force-reinstall python-dateutil
Is this new? https://share.meowstard.cat/u/QXT1R8esq.png
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.
I will check that.
Thanks
O also can not close or delete tickets. Anytime a new ticket is opened it is assigned the same number as the previous number, When we try to close a ticket we all get this https://cdn.discordapp.com/attachments/653810109423681547/1114609202833395722/image.png
Uuh, what is the problem in your screenshots?
Fixed error with c23561e.
Do I need to update the cog?
So are these new windows suppose to pop up when someone makes a ticket and closes it?
I updated and the error happened again. Any way to delete config and reset cog up?
I sent the error again to you
[p]settickettool modlog <profile> False
Uuh, the cog isn't reloaded after cog updating, right?
Then?
Would this clear the issue do you think?
Well, by default, the cog doesn't create a box in the modlog. The error can therefore never be raised.
So it works for closing now.
No error also creating seems to wwork I unloaded and reloaded
In your screenshot, the files are updated, but the cog is not reloaded. Otherwise, weird...
This is normal then? https://share.meowstard.cat/u/70IvogtiQ.png
I don't see anything wrong.
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
You can disable it for closing tickets, but not for opening them. It's just a feature to provide a reason.
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
didnt see your message, trying now
@fervent cypress
is it working as intended?
whats the SAMPLE?
Let me know in 5 minutes if the reminder is removed, as it was before.
There are now several types of interval in my cog:
SAMPLE: time intervals such asevery 1 day 3 hour and 2 minutes.CRON: https://crontab.guru/RRULE: time intervals such asevery first Friday in January at 8:30 p.m. 2 times except May 5, 2024.
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
Yeah, since I discovered it was more accurate than the RRULES I'd been planning to support since the start of the cog.
So your own reminder should work now.
Just [p]reminder say at 23h30 every day test should work with SAMPLE intervals now.
O yea what is this for?
https://share.meowstard.cat/u/RUsdypJlU.png
Is the cog unable to make a FIFO for .reload or am I doing it wrong?
I was just coming in to say that we should be able to do it without spaces like the old cog but it doesn't work correct that format.
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
Set TicletTool settings with Modals. Default et current values are showed.
Well, there are currently no forbidden commands. But maybe I should, like in the old cog Scheduler.
What was your commands? Can you send a screenshot for the problem 2?
Well, it worked before. I have to check.
This error is returned because your Cron rule does not return new occurrences.
Fixed with 6385a17. Provide seconds is also useless: they are stripped currently.
shutdown, restart, load, unload and reload commands are now forbidden in FIFO reminders.

But what was your use case? This is generally bad practice.
Yeah, there is an error in "Configure" buttons...
Just reloading a cog every 15 minutes as it keeps breaking because idk what's wrong with my internet
Leave the existing reminder, it will not be deleted.
Oh I wasn't able to set a reminder in the first place
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()
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?
The problem with my cog, I mean.
You have to load dev options with the --dev cli flag and put the code after [p]eval.
Oh, this
๐
Don't include the prefix in the command.
I see, is there any way to set the command to run at the specified time every day then?
[p]<command> at 18h every day <content>
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?
Because the cog isn't updated and the Cron interval seems to have only one trigger.
Oh, I see
I used the website suggested to me to make a Cron interval but I guess I did it wrong (?)
It's not standard, so maybe it's not supported...
Understandable, the bot seemed to translate it properly so I thought it was okay
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?
Either "every 2 minutes every hour" or "every 10 minutes every hour"
Just use [p]reminder fifo every 2 minutes ping.
I tried doing this but it just sent an error
What error?
is it possible to set the reminder cog to the mountain time zone?
You can use [p]reminder timezone <Country/Capital> to set your own timezone.
got it, ty 
my bot doesn't seem to dm me reminders anymore? i made sure i have dms open
Update the cog. I fixed an error two hours ago.
AttributeError: module 'dateutil' has no attribute 'rrule'
Yeah, I didn't understand this error before today. Fixed soon.
was it fixed in the last update or is it going to be fixed?
It's going to be fixed. I understood the problem.
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.
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
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.
I coded this cog when I saw a similar feature on another bot. But honestly, I find it pretty useless now. I use the real commands directly. Now that I've modified the code yesterday, I still have a better opinion of it. lol
Fixed with babd62c.
thank you
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?
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>.
Thanks!
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?
I will check.
Fixed. And the problem is that slash commands don't have "real" author messages and the cog couldn't test whether reactions could be added.
Ahh Thx ^^
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.
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!
Ah... we can't record the same case several times... I will fix this.
Fixed with 52bbeef.
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.
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
Uuh, normally not...
maybe smth wrong on my side? did i forget smth?
In fact, there is a , in the descriptions. I will remove it in the converter...
is the problem the , in the converter? ^^
Yeah, but I removed it in the converter, so that works now.
ok will try it ^^
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,
- On
edittextchannel permissionswhen changing the permissions onmemberits 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'
yo AAA3A, is a way to fix this issue? i update the cog today after 3 weeks and it does not work anymore, unload, load and reload work, console does not show any error, what could be the reason?
https://i.gyazo.com/44f2759db55ec353f388c9cf605f502b.png
EDIT: without the icon it works, with the icon comes this problem...is there a way to add this back?
Can you send the complete traceback, please?
yea sure have two more issues
edited
Firstly, it's never been possible to include a channel in the label of a button... Secondly, the emoji is a parameter before the role. Should I change the order, because it doesn't make sense anymore?
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'
And mentioned a few issue as well
Thanks for reporting these errors.
- Fixed with
34e5139. - and 3. Fixed with
151d988.
No probs!
-
fixed.
-
& 3. No error but still not able to change the
permson roles/members (while user's highest role is way above the role that they are changing )
What does that mean?
I am aware of that, but everything is now working again after I had redone it once and sorry for the trouble. Was just surprised again why it no longer worked after the Cog update (had it tested before and since everything still worked)
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.
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
maybe I am being dumb - but how do I get a reminders reminder to go DM instead of channel?
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
4b8fe1fda35a493bbdacdee438e544362dd77daf0590402397a283c6c5c3c3fd
Oh you may have inadvertently answered my question
[p]remindme
Ah, I'll have a look. Thank you for your time.
Fixed with 13fe61d.
Nice and no probs 
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
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.
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)
It's 1 min, as i mentioned the timestamp here^ from the actual 'reminder button' itself
trying to edit the time for a reminder but it gives me an error. did i input it wrong?
Verify that the ISO date is correct. This is the same time converter as for commands.
Ah, it's +06:00.
I'll think about this a little later, knowing that a minute's delay isn't critical either.
In Reminders, would it be useful to allow multiple mentions of roles/users in Added with [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?fb1ee38.
Yeah this was something I noticed too. It's not critical but sloppy when I have things posting everyday at 7:01.
First, seconds are not supported by the cog and are simply removed (16:31:34 -> 16:31:00). Then, if you have a lot of reminders, it is possible that the execution of the previous reminders will be delayed by the web request to the Discord API, and therefore the next one will be executed late.
Does the problem occur when you specify times directly or also when you specify precise durations?
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,
and that explains why its skipping the second part, and not precise pinging, as in if you set the reminder at 16:31:10 it will take near about a min to actually ping you
Web request cant be an issue, atleast from the testing cuz it was barely 5-6 reminders
What command do you use that would allow me to test the problem?
just remind or remindme lets come to the testing channel
do we have the bot here
Okay.
sorry, I don't understand the iso date thing. 
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 
What is the error?
Find an error on the console.
@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.
Oh i see, rip yea saw the 15 seconds loop and thought its prolly be fine but its okay since its affecting performance of the cog and bot
i didnt notice much of slowed down issue honestly
Maybe cuz i have enough mem, so didnt bother to check the usage
It affects a big bot. But it's only a few seconds (reminders advance, I mean)...
ah hmm, lets see
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]: ^^^^^^^^^^^^^^^^^^^
Fixed with 15ba845.
it works, ty! 
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>>
Fixed with eab6eea.
Thx! ^^
hey @fervent cypress is it possible to change this section?
Not possible, but you can use a custom message who will be sent in the channel after this.
aaa after the last update of rolesbuttons the buttons which are previously added arent working anymore
upon reacting i keep getting interaction failed
Find an error on the console please.
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
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.
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.
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)?
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?
Try to find the right command. Some Cron may not be supported by the cog.
Well, Cron will use Tuesday at 11am UTC if you don't specify your timezone. If you set it, the next expiration date won't change, but the repeat will.
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
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.
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)
that's wild
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? ^^
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.
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!
Added with d5a4af8.
Use [p]minecraft editlastmessage #channel True.
OHHH Thx!
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.'
Restart your bot. Defaults are stored in Red Config cache.
Thx! ^^
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'```
Yeah, I did a big update for my utils yesterday. It's fixed now, with 3fd8577.
What are the "weird permissions errors"?
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?
In the last 5 minutes, yes.
ok, let me update
I saw the error on my Sentry.
And yet this error was resolved locally, before it was published...
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)```
So that was before i updated your most recent. Then i updated, restarted, attempted to load and the error came again, just so you know timeline
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 acustomerror msgwhich 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.
Fixed with 23f8b43. Sorry.
Firstly, I'd like to keep these error messages. Secondly, the current one seems understandable to end-users (the one without reporting the error to Sentry). Thirdly, my cogs use Red's custom error message if it's set.
Finally, the fact that several error messages are sent has never happened to me. I'll need a screenshot please.
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
Not error on the console?
Others buttons work?
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
Yes, I forgot to add the members to the thread... Uuh, that's members with the administrator role or the ticket support role wouldn't have direct access to the ticket, otherwise. Maybe I shouldn't do that? Technically, private threads wouldn't be accessible without it.
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
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. ๐
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
Fixed with 250d0aa, so.
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!
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.
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
Maybe I'll rewrite it so I don't forget anything. I'll see. :-)
Lol
Well I have work in about 5 hours I should probably sleep. Ironically at 5am lol.
Congratulations again!
Thank you for using my cogs. :P
AYY congrats aaa
you deserve it,
Congrats

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) ?
The logger has not been instantiated. Is there an error concerning it, above this error?
I didn't know so I rebooted the bot, and now it work sorry for the ping 
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||
(sorry)
Uuh, what?
Hey aaa,
I think there may have been an oversight! 
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)
I will check.
Discord does not allow you to delete a permission if you obtain it at channel level... I'd have to check this.
French meme
mhm but they do allow tho, and with that ^ example (admin perms) it's a guild wide perms. So if the command allows you to run the cmd, then you should be able to change perms for yourself
So what should be checked? That the user is an administrator on the server?
Fixed with 11aab77. The same problem was in ClearChannel, MemoryGame and Sudo.
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.
[p]editfile findcog [cogname] always returns "Could not find a cog with this name." for me
You have to use the CogName with correct caps.
For example, editfile is EditFile.
ah thanks, that works indeed
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
I accept this change. However, I need to add a check to DiscordEdit to ensure that the user or bot doesn't lose one of its permissions. Pushed with 5b9812b.

