Code Monkey home page Code Monkey logo

fluffycogs's Introduction

FluffyCogs

Red Code style: black pre-commit.ci status

The fluffiest of cogs for utility, requests, or proof-of-concepts. Or memes, as is the case with the Skyrim cog.

Installation

To install:

[p]repo add fluffycogs https://github.com/zephyrkul/FluffyCogs [p]cog list fluffycogs [p]cog install fluffycogs <cog> [p]load <cog> [p]help <Cog>

Support

You can find support for these cogs in #support-fluffycogs at the Red cog support server.

Credits

Twentysix26 - Developer of Red and initial creator of the Rift cog

Cog-Creators - Other Red core developers

fluffycogs's People

Contributors

aaa3a-aaa3a avatar fixator10 avatar flame442 avatar github-actions[bot] avatar kreusada avatar pre-commit-ci[bot] avatar web-flow avatar zephyrkul 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

fluffycogs's Issues

[Rift] Suggestion: Add Option for "is typing..."

Any possibility to add an option where you can enable "is typing..." to messages sent through the rift?

So when you hit enter to send the message it says the bot is typing for like 3 seconds and then sends the message. So it doesn't look like it's appearing out of nowhere.

[invoice] Permissions do not apply if the user cannot speak.

User cannot speak, InVoice does not apply permissions

Description

When the user does not have permissions to speak the InVoice cog will treat the user as AFK and remove the guild role, resets the atc, and atc_overs to None. This happens whenever a user is server muted or does not have permission to speak in a channel.

A fix

If discord says the user/voice state is afk and is not in a voice channel

  • treat the user as AFK and remove the role, atc, and atc_overs

If discord says the user/voice state is AFK and there is a voice channel as well as a guild AFK channel.

  • If the AFK channel and voice state channel IDs are equal treat the user as AFK.
  • If one of these conditions is false do not treat the user as AFK. (ex: no AFK channel, ids do not match)

Example code

is_afk_channel = False
# Ensure the voice channel and afk channel exist before assignment.
if a.channel is not None and a.channel.guild.afk_channel is not None:
    # Check if the channel is the set afk channel
    is_afk_channel = a.channel.guild.afk_channel.id == a.channel.id
if not a.channel:  # If there is no vc remove the role.
    role_set.discard(guild_role)
    atc, atc_overs = None, None
elif a.afk and is_afk_channel:  # Check if the user is afk. Remove role if so.
    role_set.discard(guild_role)
    atc, atc_overs = None, None

Sourced from VoidNulll@e6d50c20f8600848284c0fab587f00d872e12c1b

This issue may potentially address #45

[Invoice cog] Permissions don't update correctely

Hello,

I use your cog on my server and when I create a new channel the permissions are not right :/ everybody have access to it instead of the role created dynamically.
image

Thanks for your time ๐Ÿ‘

[Rift][Suggestion] One way rift option to not delete

This is a simple suggestion as said in the title basicly we'd like to make a bug report channel so that if severe bugs that could be abused get sent in there would get auto deleted by another system but the downside to that is that with the way rift is setup right now it would delete it in the chosen rifted channel too, Instead it would be nicer if it could be set up so that the bot just grabs it and leaves it into the rifted channel if chosen so.

OneTrueSlash doesnt work with help

[2024-03-10 20:42:45] [INFO] red.vex.cmdlog: Text command 'slash sync' ran by 221701506561212416 (namelessnanashi) in our DMs.
[2024-03-10 20:46:38] [INFO] red.vex.cmdlog: Slash command [namelessbot] ran by 221701506561212416 [BasicDiscordObject(id=221701506561212416, name='namelessnanashi')] in our DMs.
[2024-03-10 20:46:39] [INFO] red.vex.cmdlog: Text command 'ping' ran by 221701506561212416 (namelessnanashi) in our DMs.
[2024-03-10 20:47:04] [INFO] red.vex.cmdlog: Slash command [namelessbot] ran by 221701506561212416 [BasicDiscordObject(id=221701506561212416, name='namelessnanashi')] in channel 1109581264392040450 [general] in guild 1109581263637057659 [0.0]
[2024-03-10 20:47:04] [ERROR] red: Exception in command 'help'
Traceback (most recent call last):
  File "/root/redenv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 828, in _do_call
    return await self._callback(interaction, **params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/share/Red-DiscordBot/data/NamelessBot/cogs/CogManager/cogs/onetrueslash/commands.py", line 53, in onetrueslash
    await interaction.client.send_help_for(
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1288, in send_help_for
    return await self._help_formatter.send_help(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 252, in send_help
    await self.format_bot_help(ctx, help_settings=help_settings)
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 640, in format_bot_help
    coms = await self.get_bot_help_mapping(ctx, help_settings=help_settings)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 296, in get_bot_help_mapping
    cm = await self.get_cog_help_mapping(ctx, cog, help_settings=help_settings)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 278, in get_cog_help_mapping
    return {
           ^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 278, in <dictcomp>
    return {
           ^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 728, in help_filter_func
    if await obj.can_see(ctx) and getattr(obj, "enabled", True):
       ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 542, in can_see
    can_run = await self.can_run(
              ^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 429, in can_run
    ret = await super().can_run(ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py", line 524, in can_run
    return await self.app_command._check_can_run(ctx.interaction)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py", line 418, in _check_can_run
    if self.wrapped.checks and not await async_all(f(ctx) for f in self.wrapped.checks):
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/utils.py", line 705, in async_all
    elem = await elem
           ^^^^^^^^^^
  File "/root/.local/share/Red-DiscordBot/data/NamelessBot/cogs/CogManager/cogs/conversationgames/core.py", line 46, in _predicate
    rating = await ctx.cog.config.guild(ctx.guild).rating()  # type: ignore
                   ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'config'
[2024-03-10 20:47:04] [ERROR] red: Exception in command 'namelessbot'
Traceback (most recent call last):
  File "/root/redenv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 828, in _do_call
    return await self._callback(interaction, **params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/share/Red-DiscordBot/data/NamelessBot/cogs/CogManager/cogs/onetrueslash/commands.py", line 53, in onetrueslash
    await interaction.client.send_help_for(
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1288, in send_help_for
    return await self._help_formatter.send_help(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 252, in send_help
    await self.format_bot_help(ctx, help_settings=help_settings)
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 640, in format_bot_help
    coms = await self.get_bot_help_mapping(ctx, help_settings=help_settings)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 296, in get_bot_help_mapping
    cm = await self.get_cog_help_mapping(ctx, cog, help_settings=help_settings)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 278, in get_cog_help_mapping
    return {
           ^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 278, in <dictcomp>
    return {
           ^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 728, in help_filter_func
    if await obj.can_see(ctx) and getattr(obj, "enabled", True):
       ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 542, in can_see
    can_run = await self.can_run(
              ^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 429, in can_run
    ret = await super().can_run(ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py", line 524, in can_run
    return await self.app_command._check_can_run(ctx.interaction)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py", line 418, in _check_can_run
    if self.wrapped.checks and not await async_all(f(ctx) for f in self.wrapped.checks):
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/utils.py", line 705, in async_all
    elem = await elem
           ^^^^^^^^^^
  File "/root/.local/share/Red-DiscordBot/data/NamelessBot/cogs/CogManager/cogs/conversationgames/core.py", line 46, in _predicate
    rating = await ctx.cog.config.guild(ctx.guild).rating()  # type: ignore
                   ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'config'
[2024-03-10 20:47:43] [INFO] red.vex.cmdlog: Slash command [namelessbot] ran by 221701506561212416 [BasicDiscordObject(id=221701506561212416, name='namelessnanashi')] in channel 1109581264392040450 [general] in guild 1109581263637057659 [0.0]
[2024-03-10 20:47:44] [INFO] red.vex.cmdlog: Text command [slash sync] ran by 221701506561212416 [namelessnanashi] with message ID 1216487678930063410 in channel 1109581264392040450 [general] in guild 1109581263637057659 [0.0]
[2024-03-10 20:47:57] [INFO] red.vex.cmdlog: Slash command [namelessbot] ran by 221701506561212416 [BasicDiscordObject(id=221701506561212416, name='namelessnanashi')] in channel 1109581264392040450 [general] in guild 1109581263637057659 [0.0]
[2024-03-10 20:47:57] [ERROR] red: Exception in command 'help'
Traceback (most recent call last):
  File "/root/redenv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 828, in _do_call
    return await self._callback(interaction, **params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/share/Red-DiscordBot/data/NamelessBot/cogs/CogManager/cogs/onetrueslash/commands.py", line 53, in onetrueslash
    await interaction.client.send_help_for(
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1288, in send_help_for
    return await self._help_formatter.send_help(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 252, in send_help
    await self.format_bot_help(ctx, help_settings=help_settings)
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 640, in format_bot_help
    coms = await self.get_bot_help_mapping(ctx, help_settings=help_settings)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 296, in get_bot_help_mapping
    cm = await self.get_cog_help_mapping(ctx, cog, help_settings=help_settings)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 278, in get_cog_help_mapping
    return {
           ^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 278, in <dictcomp>
    return {
           ^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 728, in help_filter_func
    if await obj.can_see(ctx) and getattr(obj, "enabled", True):
       ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 542, in can_see
    can_run = await self.can_run(
              ^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 429, in can_run
    ret = await super().can_run(ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py", line 524, in can_run
    return await self.app_command._check_can_run(ctx.interaction)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py", line 418, in _check_can_run
    if self.wrapped.checks and not await async_all(f(ctx) for f in self.wrapped.checks):
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/utils.py", line 705, in async_all
    elem = await elem
           ^^^^^^^^^^
  File "/root/.local/share/Red-DiscordBot/data/NamelessBot/cogs/CogManager/cogs/conversationgames/core.py", line 46, in _predicate
    rating = await ctx.cog.config.guild(ctx.guild).rating()  # type: ignore
                   ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'config'
[2024-03-10 20:47:57] [ERROR] red: Exception in command 'namelessbot'
Traceback (most recent call last):
  File "/root/redenv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 828, in _do_call
    return await self._callback(interaction, **params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/share/Red-DiscordBot/data/NamelessBot/cogs/CogManager/cogs/onetrueslash/commands.py", line 53, in onetrueslash
    await interaction.client.send_help_for(
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1288, in send_help_for
    return await self._help_formatter.send_help(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 252, in send_help
    await self.format_bot_help(ctx, help_settings=help_settings)
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 640, in format_bot_help
    coms = await self.get_bot_help_mapping(ctx, help_settings=help_settings)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 296, in get_bot_help_mapping
    cm = await self.get_cog_help_mapping(ctx, cog, help_settings=help_settings)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 278, in get_cog_help_mapping
    return {
           ^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 278, in <dictcomp>
    return {
           ^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/help.py", line 728, in help_filter_func
    if await obj.can_see(ctx) and getattr(obj, "enabled", True):
       ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 542, in can_see
    can_run = await self.can_run(
              ^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 429, in can_run
    ret = await super().can_run(ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py", line 524, in can_run
    return await self.app_command._check_can_run(ctx.interaction)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py", line 418, in _check_can_run
    if self.wrapped.checks and not await async_all(f(ctx) for f in self.wrapped.checks):
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/redenv/lib/python3.11/site-packages/discord/utils.py", line 705, in async_all
    elem = await elem
           ^^^^^^^^^^
  File "/root/.local/share/Red-DiscordBot/data/NamelessBot/cogs/CogManager/cogs/conversationgames/core.py", line 46, in _predicate
    rating = await ctx.cog.config.guild(ctx.guild).rating()  # type: ignore
                   ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'config'

[Rift] Cannot select between identically named channels

When using the command:
.rift open true general

I get the response:

Multiple results found. Choose a destination:


0: general (################), in Server1
1: general (################), in Server2
2: general (################), in Server3

Typing any number gives no response, same with the full name, ID number, server name, etc. Typing the number in the initial command still results in the same prompt.

automatic rift closing.

Not sure if this is an issue or not, but the bot seems to automatically unlink the rifts after a few days, so I have to relink the servers again.

[onetrueslash] error when using `/` in dms.

Any slash commands you try to use in dms will error the following. And this happens when you start with /botname command

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ C:\Users\maxbo\redenv\lib\site-packages\discord\app_commands\tree.py:590 in wrapper                                                                        โ”‚
โ”‚ > 590                 await self.call(interaction)                                                                                                         โ”‚
โ”‚ C:\Users\maxbo\redenv\lib\site-packages\discord\app_commands\tree.py:706 in call                                                                           โ”‚
โ”‚ > 706             await command._invoke_autocomplete(interaction, focused, namespace)                                                                      โ”‚
โ”‚ C:\Users\maxbo\redenv\lib\site-packages\discord\app_commands\commands.py:425 in _invoke_autocomplete                                                       โ”‚
โ”‚ >  425             choices = await param.autocomplete(interaction, value, namespace)                                                                       โ”‚
โ”‚ C:\Users\maxbo\Documents\discord\cogs\CogManager\cogs\onetrueslash\commands.py:64 in onetrueslash_command_autocomplete                                     โ”‚
โ”‚ > 64     ctx = InterContext.from_interaction(interaction)                                                                                                  โ”‚
โ”‚ C:\Users\maxbo\Documents\discord\cogs\CogManager\cogs\onetrueslash\context.py:38 in from_interaction                                                       โ”‚
โ”‚ > 38         message = InterMessage.from_interaction(interaction)                                                                                          โ”‚
โ”‚ C:\Users\maxbo\Documents\discord\cogs\CogManager\cogs\onetrueslash\message.py:37 in from_interaction                                                       โ”‚
โ”‚ > 37         self.channel.__class__ = type(                                                                                                                โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
TypeError: __class__ assignment: 'InterChannel' object layout differs from 'PartialMessageable'

Also got this:

Ignoring exception in command 'neobot':
Traceback (most recent call last):
  File "C:\Users\maxbo\redenv\lib\site-packages\discord\app_commands\commands.py", line 391, in _invoke_with_namespace
    return await self._callback(interaction, **values)  # type: ignore
  File "C:\Users\maxbo\Documents\discord\cogs\CogManager\cogs\onetrueslash\commands.py", line 27, in onetrueslash
    ctx = InterContext.from_interaction(interaction, recreate_message=True)
  File "C:\Users\maxbo\Documents\discord\cogs\CogManager\cogs\onetrueslash\context.py", line 38, in from_interaction
    message = InterMessage.from_interaction(interaction)
  File "C:\Users\maxbo\Documents\discord\cogs\CogManager\cogs\onetrueslash\message.py", line 37, in from_interaction
    self.channel.__class__ = type(
TypeError: __class__ assignment: 'InterChannel' object layout differs from 'PartialMessageable'

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

Traceback (most recent call last):
  File "C:\Users\maxbo\redenv\lib\site-packages\discord\app_commands\tree.py", line 710, in call
    await command._invoke_with_namespace(interaction, namespace)
  File "C:\Users\maxbo\redenv\lib\site-packages\discord\app_commands\commands.py", line 405, in _invoke_with_namespace
    raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'neobot' raised an exception: TypeError: __class__ assignment: 'InterChannel' object layout differs from 'PartialMessageable'
[14:54:32] CRITICAL [red.main] Caught unhandled exception in <Task finished name='CommandTree-invoker' coro=<CommandTree._from_interaction.<locals>.wrapper() done, defined at C:\Users\maxbo\redenv\lib\site-packages\discord\app_commands\tree.py:588> exception=TypeError("__class__ assignment: 'InterChannel' object layout differs from 'PartialMessageable'")>:
Task exception was never retrieved

Sentry log: https://sentry.io/share/issue/7bbdfe6b7bb44aba8163ef65b8cb83b5/

[OneTrueSlash] [dpy2] Search Returns Unrelated Commands

This is somewhat recent with OneTrueSlash, but it appears for a bit now, the search portion is always returning three commands without fail: test, cat, and dog when my bot actually doesn't have any cogs that have those commands.

This occurs no matter which command is used, such as help, or cog, etc... I'll leave the image of running a couple debug commands showing the non-existent command for cat.
image

[Act] Traceback

I get this whenever a user uses a command they don't have perms for. (for instance this is a user using the [p]kick command without any mod perms)

Traceback (most recent call last):
  File "/home/Ianardodiscord/Ianardo/lib/python3.7/site-packages/discord/client.py", line 270, in _run_event
    await coro(*args, **kwargs)
  File "/home/Ianardodiscord/DiscordBot/cogs/CogManager/cogs/act/act.py", line 219, in on_message
    if await ctx.command.can_run(ctx):
  File "/home/Ianardodiscord/Ianardo/lib/python3.7/site-packages/redbot/core/commands/commands.py", line 230, in can_run
    ret = await super().can_run(ctx)
  File "/home/Ianardodiscord/Ianardo/lib/python3.7/site-packages/discord/ext/commands/core.py", line 920, in can_run
    raise CheckFailure('The global check functions for command {0.qualified_name} failed.'.format(self))
discord.ext.commands.errors.CheckFailure: The global check functions for command kick failed.

[LogsFrom] Load A Saved .md File

Please add a command to load a saved .md file so that a channel can be archived into a file, deleted, then restored later if needed.

[invoice] Still not adding roles to users without speaking permissions.

Hi,
I opened an issue a few days ago (#45) about invoice not adding roles to users without speaking permission in the channel. You suggested changing the mute and deaf options to false, however this didn't solve the issue.
I asked in the cog support Discord channel and was advised to open a new issue.

I've now tried with both settings set to true and false, as well as each combination of them, however nothing seems to be working.

@everyone has no permissions set in the channel overrides, and everything disabled in the global server permissions.

@members is our normal user role and has connect and speak permissions enabled in the global settings, but speak denied in the channel overrides.

rift bug

Traceback (most recent call last):
  File "/home/zephyrkul/.pyenv/versions/red/lib/python3.7/site-packages/discord/client.py", line 220, in _run_event
    await coro(*args, **kwargs)
  File "/home/zephyrkul/.local/share/Red-DiscordBot/cogs/CogManager/cogs/rift/rift.py", line 268, in on_message
    record[m] = sent[rift_chans] = await self.process_message(rift, m, rift.source)
  File "/home/zephyrkul/.local/share/Red-DiscordBot/cogs/CogManager/cogs/rift/rift.py", line 190, in process_message
    author_perms = self.permissions(destination, author, is_owner)
  File "/home/zephyrkul/.local/share/Red-DiscordBot/cogs/CogManager/cogs/rift/rift.py", line 172, in permissions
    return destination.permissions_for(user)
  File "/home/zephyrkul/.pyenv/versions/red/lib/python3.7/site-packages/discord/channel.py", line 106, in permissions_for
    base = super().permissions_for(member)
  File "/home/zephyrkul/.pyenv/versions/red/lib/python3.7/site-packages/discord/abc.py", line 415, in permissions_for
    for role in member.roles:
AttributeError: 'User' object has no attribute 'roles'

destination - DM, author - DM owner, source - any

Should check permissions on the way back (guild.get_member).
Optimal: check perms, give default role perms via role.permissions and channel.overwrites_for, set send_messages to True, pass back.

[Feature Request] Tweet on go live notification

This is a bit of a niche request, but I'd like to use redbot as a middle man for a few services, and I'd like the ability to basically send a tweet when someone in the streamer list goes live, I have several people that stream in our community, and giving each of them access to the Twitter is something I'd like to avoid.

[Request] secureinv added tracking.

In Trusty's modlog it tracks the creation of the invite as shown Here fine.
However it does not track if you add a reason as shown Here
Is it possible to somehow get the reason logged?

[AntiCrashVid] Removing safe attachments and tenor gifs

Hey, decided to try this out when I saw it go up and it seems to be removing pretty much every attachment because on the third probe, line shows as b"\r\n" so it bails out I think? Here's an example from my console, I added a little print to show what line was getting:

[07:39:28] INFO     digest for video at link 'https://media.tenor.co/videos/507b8e696b666b72b72b6f7f95be83ad/mp4':                                         [red.fluffy.anticrashvid]
                    b0177b17a10be1393a9387ad9814195418eae752d773e8d30c7b161be881227b7a6fd3151586d00433047f85390e2c05d4146387a74eef0e1db809bbaae1d344
           INFO     link 'https://media.tenor.co/videos/507b8e696b666b72b72b6f7f95be83ad/mp4' not in digest cache                                          [red.fluffy.anticrashvid]
           INFO     Beginning first probe for link 'https://media.tenor.co/videos/507b8e696b666b72b72b6f7f95be83ad/mp4'.                                   [red.fluffy.anticrashvid]
                    If ffprobe logs stop suddenly, then most likely your system has insufficient RAM for this cog.
[07:39:29] INFO     Beginning second probe for link 'https://media.tenor.co/videos/507b8e696b666b72b72b6f7f95be83ad/mp4'.                                  [red.fluffy.anticrashvid]
           INFO     first probe: b'  Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 370x268, 25 fps, 25 tbr, 25 tbn, 25      [red.fluffy.anticrashvid]
                    tbc\r\n'
                    last probe: b'  Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 370x268, 25 fps, 25 tbr, 25 tbn, 25
                    tbc\r\n'
           INFO     link 'https://media.tenor.co/videos/507b8e696b666b72b72b6f7f95be83ad/mp4' has consistent first/last ffprobe results                    [red.fluffy.anticrashvid]
           INFO     Beginning third probe for link 'https://media.tenor.co/videos/507b8e696b666b72b72b6f7f95be83ad/mp4'.                                   [red.fluffy.anticrashvid]
b'\r\n'
           INFO     would remove message with link 'https://media.tenor.co/videos/507b8e696b666b72b72b6f7f95be83ad/mp4': ffprobe frame dimentions are not  [red.fluffy.anticrashvid]
                    constant

This is with ffprobe/ffmpeg version 4.4-full_build on Windows if it helps!

Rift Request: Forward all messages from source

Hello,

Is there any chance you could update rift, so that it relays every message from the chat, not just the creator of the rift. Also, to send the name of the user, and possible but not needed user avatar. So that server chats can be fully connected?

[Dev] extra dev env vars

The extra dev env vars which gets added by other cogs gets reset when loading the Dev cog. Have to restart the bot with the cog unloaded to get all the env vars back.

before loading the cog:
how it should be

after loading the cog:
Screenshot 2022-01-26 172001

after unloading without restart:
Screenshot 2022-01-26 172020

invoice: dynamic docstring needs an update

allow customisation of default permissions like allowing view history and link/image sharing

maybe a new settings tab in your commands menu with toggles for certain sain permissions like the one above miss out obvious no go permissions like manage and stuff but allow basic ones that normal users could require

[invoice] bug: 403 Forbidden on dynamic role create

If the bot does not have all the permissions that the guild role has, the bot silently errors with a 403 for attempting to create a role with greater permissions than it has.

nb: guild_role.permissions.value & guild.me.guild_permissions.value

rift notify is occasionally ignored

At times, out of nowhere, the command notify about a rift being opened even though it has been disabled with rift notify. I have just used it and a notification was sent in the destination, when I checked with rift notify it said it wasn't notifying (I got as reply that it was now going to send it, meaning it was already disabled before it)

[invoice] feature request: category-based settings

ignore certain categories or make a whitelist/blacklist
im using this alongside autorooms which in my server allows dynamic community rooms

but i also have proximity based voice channels for Minecraft which do not need this functionality

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.