Git Product home page Git Product logo

kreusada-cogs's Introduction

/.github/resources/kreusadacogs-artwork.png

Redbot cogs for Red-DiscordBot authored by Kreusada

Hello, these are the cogs I built for Red-DiscordBot.

Installation

Primarily, make sure you have downloader loaded.

[p]load downloader

Next, let's add my repository to your system.

[p]repo add kreusada https://github.com/Kreusada/Kreusada-Cogs

To install a cog, use this command, replacing <cog> with the name of the cog you wish to install:

[p]cog install kreusada <cog>

Available cogs list

Please see here for the list of available cogs. Cogs get added and removed without noticed.

Supporting my work

I'm accepting donations to my patreon, I'm very grateful for anything!

Contributing

If its a small PR, go for it. Otherwise, unless you've been given the green light, I don't want any big PRs for the time being: I don't have enough sufficient time to review them.

Support

Check out my docs here. Mention me in the #support_kreusada-cogs in the cog support server if you need any help.

kreusada-cogs's People

Contributors

aaa3a-aaa3a avatar adnayekken avatar apoo711 avatar chimmychanga avatar drapersniper avatar honkertonken avatar jackenmen avatar jeffjrshim avatar just-jojo avatar konamino avatar kpopdev avatar kreusada avatar leoctavius avatar ltzmax avatar madebylydia avatar oofchair avatar plooshi avatar predaaa avatar ryan5453 avatar seaswimmerthefsh avatar shukla-g avatar sourcery-ai-bot avatar sravan1946 avatar thewyn avatar twindragon avatar vexed01 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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kreusada-cogs's Issues

[Dehoister] User blacklisting

So the dehoister cog looks interesting, but there's just one problem:

Bots are picked up as hoisted users. Okay, maybe I should be more specific. Bots that have the name with the format of "PREFIX | BOTNAME" are picked up, and I don't want them to be. It would be nice if there was a way to either ignore bots or blacklist an entire role (or roles) so they're ignored.

[AdvancedUptime] Show ping/shard stats

Cog

AdvancedUptime

What would you like to see?

I would like to see a ping stat when running [p]uptime. The stats displayed currently is enough to make even me happy because I love my data but ping info would be the icing on the cake. Or the cherry on the cake, however the saying goes.

publishcog not stopping after cancelation.

What cog are you reporting for?
PublishCog

What command(s) inside the cog are you reporting for?
publishcog

What were you expecting from the output of the command?
The bot to stop after denying a cog to be published

What actually happened?
The bot deleted its message and waited for about a minute before dm'ing me that it timed out

How long has this been occuring for?
So far it hasn't occurred before but I can't say for certain.

What is your Discord username?
Jojo#7791

Additional information:

Confirmation of publishcogs on denial

Is your feature request related to a problem? Please describe.
No problem related
Describe the solution you'd like
On cancelation of [p]publishcog either edit the message sent or give a confirmation.
Describe alternatives you've considered
Adding a tick to the command's message
Additional context
None

Add i18n support!

What would you like to see?

Now this is very important for your repository. I mean all the cogs in this repository. I will be happy to participate in this and become a Russian translator.

[HigherOrLower] Underlooping Integers

What cog are you reporting for?

Higher Or Lower

What command(s) inside the cog are you reporting for?

[p]hol

What were you expecting from the output of the command?

For the command to registrate that anything below 2, or anything above Ace would not overloop into the same sequence.

What actually happened?

The for loop revealed that anything answered with lower for 2, or upper for ace, would answer correctly and print a new number which would not registrate with the previous sequence.

How long has this been occuring for?

Took about an hour to identify the issue.

What is your Discord username?

Kreusada#0518

Additional information:

This is an issue posted by myself, the cog author, as a reminder to get this patched. Feel free to leave any comments, suggestions or contributing notes so that this cog's minimal error can be resolved.

Add payment condition to raffles

Cog

Raffle

What would you like to see?

I would like to see a new condition where the user has to pay a certain amount of their Red bank account in order to enter the raffle

[Staff] Provide channel history for context

What cog are you making a feature request for?

Staff

Describe what you would like to see!

I would like to implement a channel history feature in the report to provide more context for when staff get notifications. I've already planned out how this is going to work.

m = []
b = '\n'
async for message in ctx.channel.history(limit=3):
  author, msg = message.author, message.content.replace('`','')
  if len(msg) > 30:
    msg = msg[:30].strip(' ') + '...'
  elif len(msg) == 0:
    msg = '[Embed, Attachment or File]'
  m.append(f"{str(author)}: {msg.replace(b,' ')}")
embed = discord.Embed(description=box('\n'.join(m for m in m), lang='yaml'), color=await ctx.embed_colour())

[PyPi] Python version requirement errors for smaller libraries

Cog

PyPi

Details

The pypi command errored saying that the python version requirement field value is required (therefore it is currently missing). This happened for lo and caro libraries, which seem to be completely empty by looking at their source and project details.

Traceback details (if applicable)

Exception in command 'pypi'
Traceback (most recent call last):
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/kreusada/cogs/CogManager/cogs/pypi/pypi.py", line 115, in pypi
    await ctx.send(**kwargs)
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/redbot/core/commands/context.py", line 93, in send
    return await super().send(content=content, **kwargs)
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/abc.py", line 1065, in send
    data = await state.http.send_message(channel.id, content, tts=tts, embed=embed,
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/http.py", line 254, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.2.value: This field is required

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

Traceback (most recent call last):
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/ubuntu/redenv/lib/python3.8/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: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.2.value: This field is required

[Meta] Repository Cleanup

There are a few places in my repo we're I've seen code that works, but I'd like to change ever so slightly, whether that's the order of functions, paranthesis, where black has made it look ugly etcetera.

I'm keeping this issue open and locked to remind myself, and log these changes.

[NameGenerator] Optional arguments not displaying in docstrings

What cog are you reporting for?
Name generator

What command(s) inside the cog are you reporting for?
help

What were you expecting from the output of the command?
To mention the gender option

What actually happened?
The gender option is only findable through the code or the ReadME

What is your Discord username?
DrTipmack#1009

[HigherOrLower] Cog Rework

Hello for anyone who's wondering. I will be moving HigherOrLower to a seperate repository. This is because I still think people can use it, but it does need a rework in the code itself. This links in with #39, too.

[Vinfo] CairoSVG raises an OSError through `[p]vinfo mod cairosvg`

Which cog are you reporting for?

Vinfo

Explain your issue/bug below:

When running [p]vinfo mod cairosvg, the following exception is raised:

Exception in command 'vinfo mod'
Traceback (most recent call last):
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/kreusada/cogs/CogManager/cogs/vinfo/vinfo.py", line 194, in mod
    MOD = import_module(module)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/kreusada/cogs/Downloader/lib/cairosvg/__init__.py", line 26, in <module>
    from . import surface  # noqa isort:skip
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/kreusada/cogs/Downloader/lib/cairosvg/surface.py", line 9, in <module>
    import cairocffi as cairo
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/kreusada/cogs/Downloader/lib/cairocffi/__init__.py", line 48, in <module>
    cairo = dlopen(
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/kreusada/cogs/Downloader/lib/cairocffi/__init__.py", line 45, in dlopen
    raise OSError(error_message)  # pragma: no cover
OSError: no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': libcairo.so.2: cannot open shared object file: No such file or directory
cannot load library 'libcairo.2.dylib': libcairo.2.dylib: cannot open shared object file: No such file or directory
cannot load library 'libcairo-2.dll': libcairo-2.dll: cannot open shared object file: No such file or directory

This happens for both importlib.import_module and __import__, as it doesn't actually matter which function is used. Looks like a rare error related to the cairosvg module itself.

Steps to reproduce

  1. [p]pipinstall cairosvg
  2. [p]vinfo mod cairosvg

[Vinfo] Irregular dependency tracker

Irregular Dependency Tracker

This issue will act as a tracker to ensure that all version information is pulled correctly. Feel free to leave a comment if you stumble across odd looking version information for a dependency, and I can add it to the list below. Previously, math, array and python_minifier were examples of dependencies that needed __spec__.origin to pull some kind of version because they did not have version attributes, or a __file__ attribute.

The following dependencies require a re-work in how I pull the version information to ensure that they provide accurate results.

  • alabaster
  • fuckit
  • builtins

Alabaster

When running [p]vinfo mod alabaster, it essentially returns its __file__ attribute, through the _version attribute it has. This is odd because I haven't necessarily checked _version through hasattr. This would not, however, be through the final hasattr because it is not returning sys.version_info. The potential cause for this would be _version_, which is outlined, but checked against exactly, as opposed to str.startswith.

Correction: The cause for this would be version, and it invokes the _version attribute, which returns type module. Best way to go about this would be to check against isinstance with this attr and types.ModuleType.

This alabaster issue is now fixed through a new staticmethod and function. The staticmethod makes sure that the returned type is of str, int, list or tuple.

    @staticmethod
    def check_isinstance(module: types.ModuleType, attr: str):
        return isinstance(getattr(module, attr), (str, int, list, tuple))

    def check_attrs(self, module: types.ModuleType):
        pypath = str(sysconfig.get_python_lib(standard_lib=True))
        builtin = [sys.version_info[:3], "[Core/Builtin Python]"]
        with open(Path(__file__).parent / "attrs.json") as fp:
            attrs_to_check = json.load(fp)["attrs"]
        for attr in attrs_to_check:
            if hasattr(module, attr) and self.check_isinstance(module, attr):
                return [getattr(module, attr), "." + attr]
        if hasattr(module, '__file__') and self.check_isinstance(module, '__file__'):
            file = module.__file__.lower()
            if file.startswith(pypath.lower()):
                return builtin
        if hasattr(module, '__spec__'):
            spec = module.__spec__.origin
            if spec.lower().startswith(pypath.lower()):
                return builtin
            if spec.lower() == "built-in":
                return builtin
            if spec is None:
                return builtin
        if hasattr(module, '__path__'):
            path = module.__path__[0].lower()
            if path.startswith(pypath.lower()):
                return builtin
        return None

fuckit

Fuckit has a shortened set of attributes (['__doc__', '__loader__', '__name__', '__package__', '__spec__']). This could be useful for testing. An attributeerror was raised because module.__spec__ can be None, thus making the variable imposed raise this error. This has been fixed

builtins

An error occured when getting the version information for this module. The __spec__ attribute returned the importlib.machinery.ModuleSpec, which was expected, however this type did not include origin as an attribute, therefore raising the attribute error with NoneType and origin. There has been fixes for this module by implementing an isinstance check (see below).

    def check_attrs(self, module: types.ModuleType):
        pypath = str(sysconfig.get_python_lib(standard_lib=True))
        builtin = [sys.version_info[:3], "(Core/Builtin Python)"]
        if module.__name__ == 'sys':
            return builtin
        with open(Path(__file__).parent / "attrs.json") as fp:
            attrs_to_check = json.load(fp)["attrs"]
        for attr in attrs_to_check:
            if hasattr(module, attr) and self.check_isinstance(module, attr):
                return [getattr(module, attr), "." + attr]
        if module.__name__ in stdlib_list("3.8"):
            # Will bump on Red python bump, eventually
            return builtin
        if hasattr(module, '__file__'):
            file = module.__file__.lower()
            if file.startswith(pypath.lower()):
                return builtin
        if hasattr(module, '__spec__'):
            if isinstance(module.__spec__, machinery.ModuleSpec):
                if hasattr(module.__spec__, 'origin') and module.__spec__.origin:
                    spec = module.__spec__.origin
                    if spec.lower().startswith(pypath.lower()):
                        return builtin
                    if spec.lower() == "built-in":
                        return builtin
        if hasattr(module, '__path__'):
            path = module.__path__[0].lower()
            if path.startswith(pypath.lower()):
                return builtin
        return None

Alliance Alert Configurable Commands are Erroring

What cog are you reporting for?
Alliance

What command(s) inside the cog are you reporting for?
[p]alliancealertset channel, [p]alliancealertset role, [p]alliancealertset showsettings

What were you expecting from the output of the command?
To be able to configure these settings for the alliance.

What actually happened?
Commands errored.

How long has this been occuring for?
I heard about it last week.

What is your Discord username?
AndreasDevesa#4501

Additional information:
None

[Raffle] Add ``badges_needed_to_enter`` condition

What cog are you making a feature request for?

Raffle

Describe what you would like to see:

I would like to see a new condition which is named badges_needed_to_enter. It allows you to add various badge names in a list such as "verified_bot_developer", and then these badges are required for the user to enter the raffle.

Captcha Bug which broke and crashed the bot.

Cog

Captcha

Details

On user join, the bot is supposed to give a captcha, but bot just spitted a bunch of errors and crashed.

Traceback details (if applicable)

[2021-08-19 17:22:31] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 10 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 133, in send_basics
    author={"name": f"Captcha for {self.member.name}", "url": self.member.avatar_url},
  File "C:\Users\USER\noa\lib\site-packages\discord\user.py", line 152, in avatar_url
    return self.avatar_url_as(format=None, size=1024)
  File "C:\Users\USER\noa\lib\site-packages\discord\user.py", line 192, in avatar_url_as
    return Asset._from_avatar(self._state, self, format=format, static_format=static_format, size=size)
  File "C:\Users\USER\noa\lib\site-packages\discord\asset.py", line 74, in _from_avatar
    if not utils.valid_icon_size(size):
  File "C:\Users\USER\noa\lib\site-packages\discord\utils.py", line 394, in valid_icon_size
    return not size & (size - 1) and size in range(16, 4097)
 
[2021-08-19 17:22:43] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 20 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 131, in send_basics
    embed_and_file = await self.captcha.generate_embed(
  File "C:\Users\USER\noa\lib\site-packages\discapty\discapty.py", line 260, in generate_embed
    text = footer.get("text", discord.embeds.EmptyEmbed)
 
[2021-08-19 17:22:55] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 30 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 131, in send_basics
    embed_and_file = await self.captcha.generate_embed(
  File "C:\Users\USER\noa\lib\site-packages\discapty\discapty.py", line 220, in generate_embed
    colour = kwargs.get("colour") or kwargs.get("color")
 
[2021-08-19 17:23:06] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 40 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 131, in send_basics
    embed_and_file = await self.captcha.generate_embed(
  File "C:\Users\USER\noa\lib\site-packages\discapty\discapty.py", line 257, in generate_embed
    embed = discord.Embed.from_dict(contents)
  File "C:\Users\USER\noa\lib\site-packages\discord\embeds.py", line 188, in from_dict
    continue
 
[2021-08-19 17:23:18] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 50 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 133, in send_basics
    author={"name": f"Captcha for {self.member.name}", "url": self.member.avatar_url},
  File "C:\Users\USER\noa\lib\site-packages\discord\user.py", line 152, in avatar_url
    return self.avatar_url_as(format=None, size=1024)
  File "C:\Users\USER\noa\lib\site-packages\discord\user.py", line 192, in avatar_url_as
    return Asset._from_avatar(self._state, self, format=format, static_format=static_format, size=size)
  File "C:\Users\USER\noa\lib\site-packages\discord\asset.py", line 74, in _from_avatar
    if not utils.valid_icon_size(size):
  File "C:\Users\USER\noa\lib\site-packages\discord\utils.py", line 394, in valid_icon_size
    return not size & (size - 1) and size in range(16, 4097)
 
[2021-08-19 17:23:29] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 60 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 133, in send_basics
    author={"name": f"Captcha for {self.member.name}", "url": self.member.avatar_url},
 
[2021-08-19 17:23:41] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 70 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 131, in send_basics
    embed_and_file = await self.captcha.generate_embed(
  File "C:\Users\USER\noa\lib\site-packages\discapty\discapty.py", line 268, in generate_embed
    embed.set_author(name=name, icon_url=url)
  File "C:\Users\USER\noa\lib\site-packages\discord\embeds.py", line 420, in set_author
    self._author['icon_url'] = str(icon_url)
  File "C:\Users\USER\noa\lib\site-packages\discord\asset.py", line 169, in __str__
    def __str__(self):
 
[2021-08-19 17:23:52] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 80 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 131, in send_basics
    embed_and_file = await self.captcha.generate_embed(
  File "C:\Users\USER\noa\lib\site-packages\discapty\discapty.py", line 231, in generate_embed
    if isinstance(self.captcha, TextCaptcha):
  File "C:\Python38\lib\abc.py", line 98, in __instancecheck__
    return _abc_instancecheck(cls, instance)
 
[2021-08-19 17:24:04] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 90 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 128, in send_basics
    if self.messages.get("bot_challenge"):
 
[2021-08-19 17:24:15] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 100 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 131, in send_basics
    embed_and_file = await self.captcha.generate_embed(
  File "C:\Users\USER\noa\lib\site-packages\discapty\discapty.py", line 242, in generate_embed
    contents = dict(title=title, type=_type, url=title_url, description=description)
 
[2021-08-19 17:24:27] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 110 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 135, in send_basics
    title=f"{self.guild.name} Verification System",
 
[2021-08-19 17:24:38] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 120 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 131, in send_basics
    embed_and_file = await self.captcha.generate_embed(
  File "C:\Users\USER\noa\lib\site-packages\discapty\discapty.py", line 223, in generate_embed
    f"{guild_name} Captcha Verification"
 
[2021-08-19 17:24:49] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 130 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 131, in send_basics
    embed_and_file = await self.captcha.generate_embed(
  File "C:\Users\USER\noa\lib\site-packages\discapty\discapty.py", line 266, in generate_embed
    name = author.get("name", discord.embeds.EmptyEmbed)
 
[2021-08-19 17:25:01] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 140 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 133, in send_basics
    author={"name": f"Captcha for {self.member.name}", "url": self.member.avatar_url},
  File "C:\Users\USER\noa\lib\site-packages\discord\user.py", line 152, in avatar_url
    return self.avatar_url_as(format=None, size=1024)
  File "C:\Users\USER\noa\lib\site-packages\discord\user.py", line 192, in avatar_url_as
    return Asset._from_avatar(self._state, self, format=format, static_format=static_format, size=size)
 
[2021-08-19 17:25:12] [WARNING] discord.gateway: Shard ID 0 heartbeat blocked for more than 150 seconds.
Loop thread traceback (most recent call last):
  File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 561, in <module>
    main()
  File "C:\Users\USER\noa\lib\site-packages\redbot\__main__.py", line 524, in main
    loop.run_forever()
  File "C:\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\USER\noa\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 58, in on_member_join
    await self.runner(member)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\events.py", line 24, in runner
    await self.realize_challenge(challenge)
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\base.py", line 204, in realize_challenge
    this = await challenge.try_challenging()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 67, in try_challenging
    await self.send_basics()
  File "C:\Users\USER\Downloads\Noa Fukushima\data\cogs\CogManager\cogs\captcha\api.py", line 131, in send_basics
    embed_and_file = await self.captcha.generate_embed(
  File "C:\Users\USER\noa\lib\site-packages\discapty\discapty.py", line 257, in generate_embed
    embed = discord.Embed.from_dict(contents)
  File "C:\Users\USER\noa\lib\site-packages\discord\embeds.py", line 175, in from_dict
    self._colour = Colour(value=data['color'])

Captcha: Target specific criteria for captcha verification

Cog

Captcha

What would you like to see?

Kind of stealing ideas from Wick bot but I'm sure Fnaki wouldn't mind. Anyways, one of the features his bot has is the ability to target suspicious users like new accounts, default profile pictures and a whole bunch of other data. This has been very handy from my experience and it would be awesome to see it added to your captcha cog. If it's something that causes issues or is waaayyyy too complicated to add, you don't have to do it or add it to a 'good enough' state.

Timezone attempting to send an empty message

When ran, the timezone command attempts to send an empty message. I believe this happens when the person running the command is the guild owner.

Basically, just empty message protection

[PyPi] Error when getting information about docutils

Cog

PyPi

Details

The pypi command errored saying that the classifier embed value went over max length - this is because docutils has a LOT of language classifiers which causes it to hit this cap. Best option would probably be to create a menu for libraries that exceed this cap.

Traceback details (if applicable)

Exception in command 'pypi'
Traceback (most recent call last):
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/ubuntu/.local/share/Red-DiscordBot/data/kreusada/cogs/CogManager/cogs/pypi/pypi.py", line 118, in pypi
    await ctx.send(**kwargs)
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/redbot/core/commands/context.py", line 93, in send
    return await super().send(content=content, **kwargs)
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/abc.py", line 1045, in send
    data = await state.http.send_files(channel.id, files=[file], allowed_mentions=allowed_mentions,
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/http.py", line 254, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.4.value: Must be 1024 or fewer in length.

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

Traceback (most recent call last):
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/ubuntu/redenv/lib/python3.8/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: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.4.value: Must be 1024 or fewer in length.

[Meta] Listeners should respect blocklist/allowlist, and disabled cogs

All cogs need to respect guild and global blocklists, allowlists, and disabled cogs.

    @commands.Cog.listener()
    async def on_message_without_command(self, message):
        if not message.guild:
            return
        if message.author.bot:
            return
        if await self.bot.cog_disabled_in_guild(self, message.guild):
            return
        if not await self.bot.ignored_channel_or_guild(message):
            return
        if not await self.bot.allowed_by_whitelist_blacklist(message.author):
            return
        ...

Here is a quick example of what this should look like.

[Raffle] Bug and Enhancement Tracker

Raffle Bug and Enhancement Tracker

I'd generally like to keep somewhere where I can keep on top of various bugs and enhancements, feel free to leave comments if you're reading this, and I'll add your suggestions/bugs in.

Enhancements

  • Add timer feature to the raffle.
  • Use discord.ext.tasks to take better control over replenishing the raffle data.
  • Have docs link in [p]raffle template directly to https://kreusadacogs.readthedocs.io/en/latest/cog_raffle.html#condition-blocks
  • Use [p]raffle create complex directly from an argument.

Bugs

None yet!

Doc-String Compliance

Ensure that all classes, functions and commands have docstrings, of which are appropriate to their functionality.

Add menus for roster

Idk how reaction predicate works, but I'd say probably use that or DEFAULT_CONTROLS because otherwise roster will just run down eternally.

[Vinfo] UnboundLocalError with a minority of dependencies

What cog are you reporting for?

Vinfo

What command(s) inside the cog are you reporting for?

[p]vinfo mod

Description of the issue

Some builtin (or external) modules and/or dependencies do not have __file__ attributes. This means that the module cannot be checked against pypath (str(distutils.sysconfig.get_python_lib(standard_lib=True))) because they do not have those attributes. Suggested fixes would probably be to check via dep.__spec__.origin. This seems like a more reliable way, although I noticed that one module sys returns None (perhaps because it is quite literally the python core, idk).

Examples of modules that threw this attribute error were math, and array. I'm sure there will probably be more.

2021-03-19

I am making this issue so that I can get round to resolving it as soon as possible. Please do not open any subsequent issues for this bug.

[Termino] Shutdown/restart log channel

What cog are you making a feature request for?

Termino

Describe what you would like to see:

A settable channel that the bot will send a message to on restarts and shutdowns

Test Issue

This issue is checking for auto labelers via github actions.

Create a branch with various deleted cogs

I guess they could be "archived" in so far as that I no longer want to do work on them but it would be nice if they were accessible if people enjoyed using them.

Discrepancy errors inside json files

All info.json files are essentially splitting each letter of Kreusada into a seperate name, I know why, will get round to fixing this tomorrow.

[Edition] "I don't have this perm" while bot has perm

What cog are you reporting for?
Edition

What command(s) inside the cog are you reporting for?
[p]edition

What were you expecting from the output of the command?
Nickname change to OofChair - OofChair Edition

What actually happened?
But doesnt do command

How long has this been occuring for?
Today

What is your Discord username?
OofChair#1

Additional information:
Bot has permissions, but doesn't work. I am also the admin in this server.
Perms are set

JSON Compliance

Neaten up the info.json files for this repository. This is just reminding me.

[Termino] Message when restart is successful

What cog are you making a feature request for?
Termino

Describe what you would like to see!
It would be helpful for the bot to say something when the restart is successful rather than having to look at the member list or having to wait until the profile shows that it is online.

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.