Code Monkey home page Code Monkey logo

aaa3a-cogs's Introduction

Info -

Hi there, I'm AAA3A, an Open Source Developer!

AAA3A = {
    "pronouns": {"He", "Him"},
    "country": "France",
    "code": ["Python", "HTML", "CSS", "JavaScript"],
    "askMeAbout": ["python dev", "bot dev", "web dev"],
}
  • ๐Ÿ’ป My main language is: Python.
  • ๐Ÿซ I'm currently learning: HTML, CSS, JavaScript and Django templates.

Where To Find Me -

Github Red Discord Server

Skills -

Python

OS & Tools -

Windows Android

Git Github Visual Studio Code

Stats -

Contributions

Top Languages

github activity graph

Thanks to @japandotorg for this file!


Auto-generated Metrics:

Metrics

aaa3a-cogs's People

Contributors

aaa3a-aaa3a avatar cryptolover705 avatar fakesmile9704 avatar flanisch avatar francis2054 avatar hollowstrawberry avatar jakjakob avatar japandotorg avatar karlsbjorn avatar leetfin avatar ltzmax avatar mon5termatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aaa3a-cogs's Issues

[CommandsButtons] Add Modals for params and making it sticky.

What cog is this feature request for?

commandsbuttons

Describe the feature request in as much detail as possible

I would love to create a commandsbuttons for the audio cog, especially since people have difficulty remembering different commands. It would be a great addition if people are able to fill in an argument for a command with a modal.

For example, with a button connected to the [p]play command a modal would pop up, users only have to put in an URL and than it would execute. It would be a great addition.

Also, making the message sticky to the button of the channel would be nice especially in command channels

[TempRoles] Allow `[p]temprole add` to overwrite the original duration if higher than remaining.

What cog is this feature request for?

temproles

Describe the feature request in as much detail as possible

The temproles assign command returns a "โš ๏ธ This member already has role" when used and the user already owns this role.

Could this be changed to where the duration of a temprole gets overwritten by the higher value?
So for example:

  • If user has 3d left and a command is issued for the same role with 7d duration, the new duration is 7d;
  • If user has 20d left and a command is issued for the same role with 7d duration, the duration remains 20d

Thank you for your time

[ExportChannel] Error in `[p]exportchannel all` (`chat_exporter`).

What cog is this bug report for?

exportchannel

Describe the bug

When I try to do the exportchannel all command, I only get errors and can't get any variety of the command to work.

If there's an error, paste it here

Exception in command 'exportchannel all'.
Traceback (most recent call last):
  File "{USERPROFILE}\redenv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "{USERPROFILE}\Desktop\cogs\CogManager\cogs\exportchannel\exportchannel.py", line 75, in all
    file = discord.File(io.BytesIO(transcript.encode()),
AttributeError: 'NoneType' object has no attribute 'encode'

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

Traceback (most recent call last):
  File "{USERPROFILE}\redenv\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "{USERPROFILE}\redenv\lib\site-packages\redbot\core\commands\commands.py", line 832, in invoke
    await super().invoke(ctx)
  File "{USERPROFILE}\redenv\lib\site-packages\discord\ext\commands\core.py", line 1348, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "{USERPROFILE}\redenv\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "{USERPROFILE}\redenv\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'encode'

[DiscordSearch] Search content in embeds.

What cog is this feature request for?

DiscordSearch

Describe the feature request in as much detail as possible

It would be really nice to be able to search for content in embeds.

[SimpleSanction] `TypeError` in `simplesanction.utils.confirmation_ask`.

Simple Sanction won't allow any actions to be performed.

Error in [text] command of sanction

n] Exception in [text] command 'sanction'. โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ ..../redenv/lib/python3.9/site-packages/discord/ext/commands/core.py:229 in wrapped โ”‚ โ”‚ โฑ 229 ret = await coro(*args, **kwargs) โ”‚ โ”‚ ..../cogs/CogManager/cogs/simplesanction/simplesanction.py:282 in _sanction โ”‚ โ”‚ โฑ 282 await self.call_sanction( โ”‚ โ”‚ ..../cogs/CogManager/cogs/simplesanction/simplesanction.py:938 in call_sanction โ”‚ โ”‚ โฑ 938 await self.call_actions( โ”‚ โ”‚ ...../cogs/CogManager/cogs/simplesanction/simplesan โ”‚ โ”‚ ction.py:1611 in call_actions โ”‚ โ”‚ โฑ 1611 confirmation = await utils.confirmation_ask( โ”‚ โ”‚ ...../cogs/CogManager/cogs/simplesanction/utils.py: โ”‚ โ”‚ 129 in confirmation_ask โ”‚ โ”‚ โฑ 129 return await CogsUtils(bot=self.bot).ConfirmationAsk(self=self, embed=embed) โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ TypeError: ConfirmationAsk() got multiple values for argument 'self'

[DiscordModals] Why can't I install it on Red 3.4.16?

What cog is this bug report for?

discordmodals

Describe the bug

So when you go to install the cog, it gives this message

This cog requires different Red version than you currently have (3.4.16): discordmodals (Minimum: 3.5.0.dev1)

If there's an error, paste it here

No response

[CommandsButtons] Message gets bot reactions upon command execution.

What cog is this feature request for?

buttonscommands & tickettool

Describe the feature request in as much detail as possible

Hi,

This issue is not really a priority and a bit of an overly specific use case so sorry in advance for this rambling:
In my Discord I have set up a Bot Message with buttons under it (from the buttonscommands cog), these buttons create tickets using your tickettool cog. This works, but as an aknowledgement of the executed command RedBot reacts a โœ…, which in turn means that other users (without react permissions) can keep reacting this emote. This has lead to confusion in my server, since some people have tried clicking this โœ… instead of the intended buttons. It is also visually annoying (to me) that there are reactions on this bot message.

My proposed fix (from the perspective of someone that doesn't know how to code) would be to build into the buttonscommands cog a feature that blocks bot reactions on command executions. I hope that this is possible :)

Thank you for your time

[LinkQuoter] Add an option to toggle the `delete_message` button.

What cog is this feature request for?

linkquoter

Describe the feature request in as much detail as possible

Proposal

I would like to be able to toggle the delete_message button appearing on link quoted messages, so that they don't appear in the first place.

Maybe an extra option like showdeletemessagebutton or equivalent? This could be set to True as the default, mimicking the current behaviour.

Relevant code block that would need to be "toggle-able":

@discord.ui.button(emoji="โœ–๏ธ", style=discord.ButtonStyle.danger, custom_id="delete_message")
async def delete_message(self, interaction: discord.Interaction, button: discord.ui.Button) -> None:
await CogsUtils.delete_message(self._message)
self.stop()

[TicketTool] Update documentation.

What cog is this bug report for?

Tickettool

Describe the bug

[p]settickettool adminrole <profile> <role>

should be [p]settickettool adminroles <profile> <role>

second comand on Docs

If there's an error, paste it here

No response

[EditTextChannel] The cog is failing to load after the update!

What cog is this bug report for?

edittextchannel

Describe the bug

Hi, AAA3A
After updating the edittextchannel, it fails to load up and throwing the mentioned error when I try to .load it back. Used to work perfectly fine before yesterday.
Thanks

(The error is attached)

If there's an error, paste it here

Exception during loading of package
Traceback (most recent call last):
  File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/core/core_commands.py", line 172, in _load
    await bot.load_extension(spec)
  File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/core/bot.py", line 1554, in load_extension
    lib = spec.loader.load_module()
  File "<frozen importlib._bootstrap_external>", line 529, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 1034, in load_module
  File "<frozen importlib._bootstrap_external>", line 859, in load_module
  File "<frozen importlib._bootstrap>", line 274, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 711, in _load
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 855, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/ubuntu/data/starship_main/cogs/CogManager/cogs/edittextchannel/__init__.py", line 1, in <module>
    from .AAA3A_utils import CogsUtils  # isort:skip
  File "/home/ubuntu/data/starship_main/cogs/CogManager/cogs/edittextchannel/AAA3A_utils/__init__.py", line 1, in <module>
    from .cogsutils import CogsUtils
  File "/home/ubuntu/data/starship_main/cogs/CogManager/cogs/edittextchannel/AAA3A_utils/cogsutils.py", line 27, in <module>
    from .cog import Cog
  File "/home/ubuntu/data/starship_main/cogs/CogManager/cogs/edittextchannel/AAA3A_utils/cog.py", line 11, in <module>
    from .context import Context
  File "/home/ubuntu/data/starship_main/cogs/CogManager/cogs/edittextchannel/AAA3A_utils/context.py", line 4, in <module>
    from redbot.core.utils import can_user_react_in
ImportError: cannot import name 'can_user_react_in' from 'redbot.core.utils' (/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/core/utils/__init__.py)

[CmdChannel] `[p]cmdset` isn't allowed for guild administrators.

What cog is this bug report for?

CmdChannel

Describe the bug

The cmd cmdset from CmdChannel cog is not accepting the Admin perms, and it's showing,

Only the owner of this server can access these commands!

Even tho, it should accept the admin perms as well as guild owner, according to the permission check on the cog.

If there's an error, paste it here

No Error. Just not accepting the administrative perms.

[Calculator] Too many interaction messages.

What cog is this bug report for?

Calculator

Describe the bug

The way the calculator works is by sending individual interaction messages back to the user, which I feel should instead be edited. is there a way to edit this. Thank you!

If there's an error, paste it here

No response

[TicketTool] The button creates two tickets.

What cog is this bug report for?

Ticket Tool

Describe the bug

I'm on the latest version of the cog and clicking on the button creates double tickets.

If there's an error, paste it here

No response

[TransferChannel] Specify webhook/guild.

What cog is this feature request for?

transferchannel

Describe the feature request in as much detail as possible

We are wanting to basically close a gaming guild, but from what we can tell this only allows for the cloning of channels within the same guild. If we could specify the source/destination guild or webhook, then we could do so. This would be amazing and very useful. Thanks!

[Sudo] `AttributeError: 'Context' object has no attribute 'interaction'` on dpy1.

What cog is this bug report for?

Sudo

Describe the bug

Sudo fails to run the command on dpy 1.7 because the check for ctx.interaction is None causes an exception.

If there's an error, paste it here

Sep 21 22:42:13 tpun bash[5652]: Ignoring exception in on_message
Sep 21 22:42:13 tpun bash[5652]: Traceback (most recent call last):
Sep 21 22:42:13 tpun bash[5652]:   File "/home/discord/redenv/lib/python3.9/site-packages/discord/client.py", line 343, in _run_event
Sep 21 22:42:13 tpun bash[5652]:     await coro(*args, **kwargs)
Sep 21 22:42:13 tpun bash[5652]:   File "/home/discord/redenv/lib/python3.9/site-packages/redbot/core/events.py", line 354, in on_message
Sep 21 22:42:13 tpun bash[5652]:     await bot.process_commands(message)
Sep 21 22:42:13 tpun bash[5652]:   File "/home/discord/redenv/lib/python3.9/site-packages/redbot/core/bot.py", line 1523, in process_commands
Sep 21 22:42:13 tpun bash[5652]:     await self.invoke(ctx)
Sep 21 22:42:13 tpun bash[5652]:   File "/home/discord/redenv/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
Sep 21 22:42:13 tpun bash[5652]:     await ctx.command.invoke(ctx)
Sep 21 22:42:13 tpun bash[5652]:   File "/home/discord/redenv/lib/python3.9/site-packages/redbot/core/commands/commands.py", line 818, in invoke
Sep 21 22:42:13 tpun bash[5652]:     if not await self.can_run(ctx, change_permission_state=True):
Sep 21 22:42:13 tpun bash[5652]:   File "/home/discord/redenv/lib/python3.9/site-packages/redbot/core/commands/commands.py", line 444, in can_run
Sep 21 22:42:13 tpun bash[5652]:     ret = await super().can_run(ctx)
Sep 21 22:42:13 tpun bash[5652]:   File "/home/discord/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 1087, in can_run
Sep 21 22:42:13 tpun bash[5652]:     return await discord.utils.async_all(predicate(ctx) for predicate in predicates)
Sep 21 22:42:13 tpun bash[5652]:   File "/home/discord/redenv/lib/python3.9/site-packages/discord/utils.py", line 350, in async_all
Sep 21 22:42:13 tpun bash[5652]:     elem = await elem
Sep 21 22:42:13 tpun bash[5652]:   File "/home/discord/.local/share/Red-DiscordBot/data/tpun/cogs/CogManager/cogs/sudo/sudo.py", line 69, in pred
Sep 21 22:42:13 tpun bash[5652]:     if ctx.command.parent is not None and ctx.command.parent.qualified_name == "Sudo":
Sep 21 22:42:13 tpun bash[5652]: AttributeError: 'Context' object has no attribute 'interaction'

[Minecraft] Minecraft Server Data cannot be retrieved.

What cog is this bug report for?

minecraft

Describe the bug

The addserver and getserver functions of the minecraft cog are not working, I had a look at the py docs and it could be that the py library was updated? Unfortunately, I am limited in my understanding of code

If there's an error, paste it here

No response

[GuildStats] Auto-refresh and remove buttons for some graphs.

What cog is this feature request for?

guildstats

Describe the feature request in as much detail as possible

I would like to ask if it is possible to implement an autorefresh function in the guildstats cog (even every 5-30 minutes) and also a function that hides the buttons, so as to possibly use the graphs generated by guildstats as public graphs within the server

[TicketTool] How do I delete the ticket channel and generate a transcript?

What cog is this feature request for?

Ticket Tool

Describe the feature request in as much detail as possible

is there anyway I can just close a ticket and not have it saved in a different category? I'd really to prefer to have proper transcript than waste channels on tickets

Something like this:
Screenshot 2022-08-09 110430
.

[DiscordEdit] Add support for multiple permissions in `[p]edittextchannel permissions` and `[p]editvoicechannel permissions`.

What cog is this feature request for?

DiscordEdit

Describe the feature request in as much detail as possible

Heya ๐Ÿ‘‹
For the edittextchannel perms & editvoicechannel perms commands under DiscordEdit cog, currently these don't support passing multiple perms (send msg, read msg etc) along with the cmd.

I think it'd be great to have that functionality to pass multiple perms for a specific user or users & roles(s) (as what it supports).

On a side note: As a user you normally would want to give multiple perms to specific people rather than specific perm to multiple people (as this can be done just by giving a role to them then just add the role).

So if you could add the features to both the cmds would be super helpful.
Thanks

[DropdownsTexts] Module `discord` has no attribute `PartialEmojia` (typo).

What cog is this bug report for?

dropdownstexts

Describe the bug

I use the old version of dropdownstexts and it still loadable until i update the cog and get the error "module 'discord' has no attribute 'PartialEmojia' " I include the log when i try to load the updated dropdownstexts cog.

If there's an error, paste it here

redbot\core\core_commands.py", line 188, in _load
    await bot.load_extension(spec)
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
Redbot\cogs\CogManager\cogs\dropdownstexts\__init__.py", line 40, in <module>
    from .dropdownstexts import DropdownsTexts
Redbot\cogs\CogManager\cogs\dropdownstexts\dropdownstexts.py", line 13, in <module>
    from .converters import Emoji, EmojiLabelTextConverter
Redbot\cogs\CogManager\cogs\dropdownstexts\converters.py", line 16, in <module>
    class Emoji(commands.EmojiConverter):
line 19, in Emoji
    ) -> typing.Union[discord.PartialEmojia, str]:
                      ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'discord' has no attribute 'PartialEmojia'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.