Cogs for Red-DiscordBot

Overview

/.github/resources/kreusadacogs-artwork2.png

Redbot cogs for Red-DiscordBot authored by Kreusada

This is my repository for Red Discord-Bot. I built these cogs because these were the features that I wanted for my bot, WALL-E.

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.

Supporting my work

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

Contributing

Feel free to open a pull request, or an issue, I'm more than happy to make changes to my work.

Support

Check out my docs here. Mention me in the #support_kreusada-cogs in the cog support server if you need any help. Additionally, feel free to open an issue or pull request to this repo.

Credits

  • Everyone who has helped from Red! <3
  • Special thanks to Jojo for kickstarting me with python.
  • Thanks Jackenmen for some awesome work on this repo's workflows and pre-commit stuff <3

LICENSE

This repository and its cogs are protected under the MIT License.

For further information, please click here

Copyright (c) 2021 kreusada

Comments
  • [Captcha] Manually initiate a challenge for the specified user(s).

    [Captcha] Manually initiate a challenge for the specified user(s).

    Type

    • [ ] Bugfix
    • [ ] Enhancement
    • [X] New feature
    • [ ] Documentation

    Description of the changes

    Hello, Here is the code to add the functionality to manually launch the captcha challenge for the specified user(s). Simply issue the command "[p]captcha @user @user1 etc.". Thanks in advance and have a nice day.

    opened by AAA3A-AAA3A 14
  • [Captcha] Notify of new users that joined whilst the bot was offline

    [Captcha] Notify of new users that joined whilst the bot was offline

    Hello, I have just started using a redbot and have installed the captcha log. It's great and works perfectly with a lot of functions! However, I do have a suggestion for an option to add to the cog. My bot is not permanently hosted and a user may enter the server when the bot is offline. Either the bot finds the new users when it starts, or (the easiest way in my opinion), a command like ".captcha User" allows an administrator to start a captcha challenge only for the specified user or users. Feel free to ask for clarification. Thanks in advance for your help.

    opened by AAA3A-AAA3A 9
  • [TimesTables] Against the clock feature request

    [TimesTables] Against the clock feature request

    I'm really enjoying this new cog, but I'd love to see a feature where you have say "30 seconds" to answer as many questions as you can. Will you consider this?

    opened by LeOctavius 7
  • Captcha Bug which broke and crashed the bot.

    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'])
    
    opened by JeffJrShim 5
  • [Dehoister] User blacklisting

    [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.

    opened by kyle95wm 5
  • [Captcha] Logging dates are inaccurate

    [Captcha] Logging dates are inaccurate

    Cog

    Captcha

    Details

    what the heck is this date output

    Traceback details (if applicable)

    23:18 - 0/12/2021 XXX (0/3): :information_source: The member started the challenge.
    23:18 - 0/12/2021 XXX (0/3): :repeat: User reloaded captcha.
    23:18 - 0/12/2021 XXX (1/3): :information_source: The member started the challenge.
    23:18 - 0/12/2021 XXX (1/3): :no_entry_sign: User sent an invalid code.
    23:18 - 0/12/2021 XXX (2/3): :information_source: The member started the challenge.
    23:18 - 0/12/2021 XXX (2/3): :white_check_mark: User passed captcha.
    23:18 - 0/12/2021 XXX: Roles added, Captcha passed.
    
    opened by mon5termatt 3
  • [Raffle] v1.5.2 Reformat pagination in raffle members command

    [Raffle] v1.5.2 Reformat pagination in raffle members command

    Type

    • [ ] Bugfix
    • [x] Enhancement
    • [ ] New feature
    • [ ] Documentation

    Description of the changes

    Limit each page to only 10 members, instead of using pagination page limits

    opened by Kreusada 3
  • [Docs] Fix repo installation casing for AdvancedUptime

    [Docs] Fix repo installation casing for AdvancedUptime

    Type

    • [ ] Bugfix
    • [ ] Enhancement
    • [ ] New feature
    • [X] Documentation

    Description of the changes

    Repo name is case sensitive, install and info commands won't work if the repo name is capitalized.

    opened by TheWyn 3
  • [Dehoister] Add user blacklisting to various dehoister events and commands

    [Dehoister] Add user blacklisting to various dehoister events and commands

    Type

    • [ ] Bugfix
    • [x] Enhancement
    • [ ] New feature
    • [ ] Documentation

    Description of the changes

    Adds an ignore list to have the dehoister ignore certain users. Doc strings might not be the best but it's me (:

    If anything needs to be changed then lmk :D

    Closes #61

    opened by Just-Jojo 3
  • New picture commands to namegenerator

    New picture commands to namegenerator

    Type

    • [ ] Bugfix
    • [ ] Enhancement
    • [x] New feature
    • [ ] Documentation

    Description of the changes

    I have added 2 commands: [p]name picture and [p]name profile:

    • [p]name picture retrieves a photo from This website and sends it: image

    • name profile Is (for now)more of a shorter way of sending a full name and a picture together (it runs [p]name full and [p]name picture consecutively. Unfortunately, the website I use is random so there is no way of setting genders: image

    I use a PyPi module thispersondoesnotexist to retrieve the image. There is a way to do this with HTTP instead, so if a new module is undesired, I can change that.

    Also, this is my first time messing around with cogs, so the way I send images may be incorrect. Feel free to change anything you think is problematic 👍

    opened by DrTipmack 3
  • [Vinfo] UnboundLocalError with a minority of dependencies

    [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.

    opened by Kreusada 3
  • Add payment condition to raffles

    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

    opened by Adnayekken 0
Owner
Kreus Amredes
Developer based in Spain/England.
Kreus Amredes
Charged's cogs for Red!

Light-Cogs Charged's cogs for Red! Read below for more information. Features and Cogs TechInfo Lots of commands helping you and your devices! Extended

Charged 2 Jan 7, 2022
Verify your Accounts by Tempphone using this Discordbot

Verify your Accounts by Tempphone using this Discordbot 5sim.net is a service, that offer you temp phonenumbers for otp verification. It include a lot

null 23 Jan 3, 2023
Anti-league-discordbot - Harrasses imbeciles for playing league of legends

anti-league-discordbot harrasses imbeciles for playing league of legends Running

Chris Clem 2 Feb 12, 2022
A frame to create discord bots (for myself) that uses cogs, JSON, activities, and more.

dpy-frame A frame to create discord bots (for myself) that uses cogs, JSON, activities, and more. NOTE: Documentation is incomplete, so please wait un

Apple Discord 1 Nov 6, 2021
Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar seu próprio token, e lembrando, é um bot básico, não se utiliza Cogs nem slash commands nele!

BotDiscordPython Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar s

Matheus Muguet 4 Feb 5, 2022
Cogs for RedDiscord-Bot V3

Cogs v3 Disclaimer: This is an unapproved repo, meaning no one has formally reviewed this repo yet and any loss of data in your bot isn't my fault (An

Honkertonken 5 Nov 17, 2022
A simple script that loads and hot-reloads cogs when you save any changes

DiscordBot-HotReload A simple script that loads and hot-reloads cogs when you save any changes Usage @bot.event async def on_ready(): from HotRelo

null 2 Jan 14, 2022
Cogs version of iso6.9 with the help of thatOneArchUser

iso6.9-cogs (debloated) This is a cogs version of iso6.9 by αrchιshα#5518. iso6.9 is a Discord bot written in Python and is used to make your Discord

Kamilla Youver 2 Jun 10, 2022
A discord.py bot template with Cogs implemented.

discord-cogs-template A discord.py bot template with Cogs implemented. Instructions Before you start ⚠ Basic knowledge of python is required. Steps If

censor 2 Sep 2, 2022
Automation for grabbing keys from a Linux host. Useful during red team exercises to quickly help assess what access to a Linux host can lead to.

keygrabber Automation for grabbing keys from a Linux host. This can be helpful during red team exercises when you gain access to a Linux host and want

Cedric Owens 14 Sep 27, 2022
Red-mail - Advanced email sending library for Python

Red Mail Next generation email sender What is it? Red Mail is an advanced email

Mikael Koli 313 Jan 8, 2023
Cogs for Red-DiscordBot

Redbot cogs for Red-DiscordBot authored by Kreusada This is my repository for Red Discord-Bot. I built these cogs because these were the features that

Kreus Amredes 26 Nov 7, 2022
Charged's cogs for Red!

Light-Cogs Charged's cogs for Red! Read below for more information. Features and Cogs TechInfo Lots of commands helping you and your devices! Extended

Charged 2 Jan 7, 2022
Red Team Toolkit is an Open-Source Django Offensive Web-App which is keeping the useful offensive tools used in the red-teaming together.

RedTeam Toolkit Note: Only legal activities should be conducted with this project. Red Team Toolkit is an Open-Source Django Offensive Web-App contain

Mohammadreza Sarayloo 382 Jan 1, 2023
Verify your Accounts by Tempphone using this Discordbot

Verify your Accounts by Tempphone using this Discordbot 5sim.net is a service, that offer you temp phonenumbers for otp verification. It include a lot

null 23 Jan 3, 2023
Anti-league-discordbot - Harrasses imbeciles for playing league of legends

anti-league-discordbot harrasses imbeciles for playing league of legends Running

Chris Clem 2 Feb 12, 2022
A frame to create discord bots (for myself) that uses cogs, JSON, activities, and more.

dpy-frame A frame to create discord bots (for myself) that uses cogs, JSON, activities, and more. NOTE: Documentation is incomplete, so please wait un

Apple Discord 1 Nov 6, 2021
Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar seu próprio token, e lembrando, é um bot básico, não se utiliza Cogs nem slash commands nele!

BotDiscordPython Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar s

Matheus Muguet 4 Feb 5, 2022
Cogs for RedDiscord-Bot V3

Cogs v3 Disclaimer: This is an unapproved repo, meaning no one has formally reviewed this repo yet and any loss of data in your bot isn't my fault (An

Honkertonken 5 Nov 17, 2022
A simple script that loads and hot-reloads cogs when you save any changes

DiscordBot-HotReload A simple script that loads and hot-reloads cogs when you save any changes Usage @bot.event async def on_ready(): from HotRelo

null 2 Jan 14, 2022