Giter VIP home page Giter VIP logo

sauricogs's Introduction

Contact me

If you have any issues with any of the cogs, join my support Discord or open an issue on GitHub.

How to install

Type [p]repo add SauriCogs https://github.com/elijabesu/SauriCogs/ to add the repo.

Type [p]cog install SauriCogs <cog> to install your desired cog.

Cogs

Click on the cog names to get to my wiki page and learn about them.

Name Description
advancedlock Lock @everyone from sending messages in channels or the entire guild, and only allow Moderators to talk. This version has some advanced settings.
application Receive and moderate staff applications with customizable questions.
cookies Collect cookies and steal from others.
cookiestore Additional store with redeemable items to my Cookies cog.
counting Make a counting channel with goals.
economyraffle Simple cog that gives a pre-specified amount of credits to a randomly picked user.
forwarding Forward all DMs sent to the bot to the bot owner (or a specified channel), including messages with attachments.
gallery Set channels as galleries, deleting all messages that don't contain any attachments.
lock Lock @everyone from sending messages in channels or the entire guild, and only allow Moderators to talk.
lvlupcookies Set cookie rewards for users that level up!
marriage Marry, divorce, and give gifts to other members.
mentionable Very simple way to make unmentionable roles mentionable.
pick Pick a random user, or a user with a specified role.
pingable Make unpingable roles pingable by regular users with commands.
reacttickets Reaction based assignable support tickets with custom cases (reasons).
suggestion Per guild, as well as global, suggestion box voting system.
uniquename Deny members' names to be the same as your Moderators'.
userlog Log when users join/leave into a specified channel.

sauricogs's People

Contributors

aithne99 avatar elijabesu avatar jackenmen avatar kreusada avatar predaaa avatar qenu avatar ryan5453 avatar sharkytheking avatar steewbsd avatar thewyn avatar wesleigh avatar zephyrkul avatar

Stargazers

 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

sauricogs's Issues

Make own MessagePredicate.valid_role()

Cause, apparently, this takes only IDs.

valid_role:

    def valid_role(
        cls,
        ctx: Optional[commands.Context] = None,
        channel: Optional[discord.TextChannel] = None,
        user: Optional[discord.abc.User] = None,
    ) -> "MessagePredicate":
        """Match if the response refers to a role in the current guild.

        Assigns the matching `discord.Role` object to `result`.

        This predicate cannot be used in DM.

        Parameters
        ----------
        ctx : Optional[Context]
            Same as ``ctx`` in :meth:`same_context`.
        channel : Optional[discord.TextChannel]
            Same as ``channel`` in :meth:`same_context`.
        user : Optional[discord.abc.User]
            Same as ``user`` in :meth:`same_context`.

        Returns
        -------
        MessagePredicate
            The event predicate.

        """
        same_context = cls.same_context(ctx, channel, user)
        guild = cls._get_guild(ctx, channel, cast(discord.Member, user))

        def predicate(self: MessagePredicate, m: discord.Message) -> bool:
            if not same_context(m):
                return False

            role = self._find_role(guild, m.content)
            if role is None:
                return False

            self.result = role
            return True

        return cls(predicate)

_find_role:

    def _find_role(guild: discord.Guild, argument: str) -> Optional[discord.Role]:
        match = _ID_RE.match(argument) or _ROLE_MENTION_RE.match(argument)
        if match:
            result = guild.get_role(int(match.group(1)))
        else:
            result = discord.utils.get(guild.roles, name=argument)
        return result

and _ROLE_MENTION_RE = re.compile(r"<&([0-9]{15,21})>$")

[Application error] TypeError: Object of type Role is not JSON serializable

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 83, in wrapped
    ret = await coro(*args, **kwargs)
  File "/root/.local/share/Red-DiscordBot/data/cuffbotv3/cogs/CogManager/cogs/application/application.py", line 217, in applysetup
    await self.config.guild(ctx.guild).applicant_id.set(applicant)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 257, in set
    await self.driver.set(self.identifier_data, value=value)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/drivers/json.py", line 146, in set
    value_copy = json.loads(json.dumps(value))
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type Role is not JSON serializable

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

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 892, in invoke
    await ctx.command.invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 797, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 92, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: Object of type Role is not JSON serializable

[Suggestion] For "suggestion" cog

  1. keep eye on downemoji & upemoji emote and allow a user to only react to one of them.

  2. If repost after decision made is enabled, give option to not delete original suggestion.

  • also allow to edit original suggestion msg after decision is made and "repost suggestion" is enabled.
  1. Tally votes and add it in as information in edited and reposted embed.

  2. don't clear emotes from a suggestions original msg after decision is made to alloww & see who voted what (can stop tracking downemoji & upemoji emote here)

.setcookies rate less than 1?

I want cookies to be more valuable than economy credits :(
When i do .setcookies rate (anything less than 1)
I get "Converting to "int" failed for parameter "rate"." and it makes me sad lol

(EDIT): nvm figured it out, went directly into the cog config file on the server and changed the rate in notepad :)

[Suggestion] Red currency to cookies

I think it could be cool to add possibility to buy cookies using defualt red economy.
For example i have 12k (of my local currency) and i can exchange it for 2k of cookies.
All could be done by cookiestore.

[Marriage] Error on price change

Hello Ellie,

Marriage cog gives me some problems with the following commands:

!marriage changeprice fuck 10

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 83, in wrapped
    ret = await coro(*args, **kwargs)
  File "/root/.local/share/Red-DiscordBot/data/cuffbotv3/cogs/CogManager/cogs/marriage/marriage.py", line 206, in marriage_changeprice
    await self.config.guild(ctx.guild).shit.get_raw(action)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 504, in get_raw
    raw = await self.driver.get(identifier_data)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/drivers/json.py", line 138, in get
    partial = partial[i]
KeyError: '443493512357347339'

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

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 892, in invoke
    await ctx.command.invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/commands/commands.py", line 799, in invoke
    await super().invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1234, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 797, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 92, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: '443493512357347339'

pol.marriage changeprice flirt 100

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 83, in wrapped
    ret = await coro(*args, **kwargs)
  File "/root/.local/share/Red-DiscordBot/data/cuffbotv3/cogs/CogManager/cogs/marriage/marriage.py", line 206, in marriage_changeprice
    await self.config.guild(ctx.guild).shit.get_raw(action)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 504, in get_raw
    raw = await self.driver.get(identifier_data)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/drivers/json.py", line 138, in get
    partial = partial[i]
KeyError: '443493512357347339'

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

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 892, in invoke
    await ctx.command.invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/commands/commands.py", line 799, in invoke
    await super().invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1234, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 797, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 92, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: '443493512357347339'

Pol.marriage changeprice flirt 100

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 83, in wrapped
    ret = await coro(*args, **kwargs)
  File "/root/.local/share/Red-DiscordBot/data/cuffbotv3/cogs/CogManager/cogs/marriage/marriage.py", line 206, in marriage_changeprice
    await self.config.guild(ctx.guild).shit.get_raw(action)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 504, in get_raw
    raw = await self.driver.get(identifier_data)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/drivers/json.py", line 138, in get
    partial = partial[i]
KeyError: 'shit'

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

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 892, in invoke
    await ctx.command.invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/redbot/core/commands/commands.py", line 799, in invoke
    await super().invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1234, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 797, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 92, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 'shit'

Application

When it asks what role can accept and deny, i mention the role but nothing happens afer

[APPLICATION] Permission error + suggestion

Suggestion: Option to use roleid or role mention to give the role expect useing case intensive role name.

Error:
The bot does not give a warning when someone tries to give a person a role that is higher then the
bot.

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 83, in wrapped
    ret = await coro(*args, **kwargs)
  File "/root/.local/share/Red-DiscordBot/data/cuffbotv3/cogs/CogManager/cogs/application/application.py", line 217, in accept
    await target.add_roles(role_add)
  File "/root/redenv/lib/python3.8/site-packages/discord/member.py", line 641, in add_roles
    await req(guild_id, user_id, role.id, reason=reason)
  File "/root/redenv/lib/python3.8/site-packages/discord/http.py", line 221, in request
    raise Forbidden(r, data)
discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions

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

Traceback (most recent call last):
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 892, in invoke
    await ctx.command.invoke(ctx)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 797, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/root/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 92, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: Forbidden: 403 Forbidden (error code: 50013): Missing Permissions

image

[Reacttickets] Users can't see message history

After a user opens a support ticket, they can only view the channel but don't have the 'read message history' permission. I tried setting it by default on the category but that doesn't work. Is there any way to fix this? So far, this is the best react ticket cog that I found. Really hope this bug can be fixed.

[ReactTickets] Invalid Reaction

When I try to setup the reacttickets cog, it asks me to react on the message it sends. But when I try to add a reaction, it only says 'invalid reaction' no matter what reaction I add. I've tried reinstalling but still the same.

[Marriage] `[p]perform` and `[p]gift` error out for members that have spouses that are no longer in the server

[2021-04-24 03:54:38] [ERROR] red: Exception in command 'perform'
Traceback (most recent call last):
  File "/home/ubuntu/red-venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/ubuntu/red-data/cogs/CogManager/cogs/marriage/marriage.py", line 885, in perform
    endtext = await self._maybe_divorce(ctx, spouse, endtext, contentment)
  File "/home/ubuntu/red-data/cogs/CogManager/cogs/marriage/marriage.py", line 1033, in _maybe_divorce
    s_temp = await m_conf(spouse).contentment()
  File "/home/ubuntu/red-venv/lib/python3.8/site-packages/redbot/core/config.py", line 1110, in member
    return self._get_base_group(self.MEMBER, str(member.guild.id), str(member.id))
AttributeError: 'NoneType' object has no attribute 'guild'
[2021-04-24 03:58:31] [ERROR] red: Exception in command 'gift'
Traceback (most recent call last):
  File "/home/ubuntu/red-venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/ubuntu/red-data/cogs/CogManager/cogs/marriage/marriage.py", line 963, in gift
    endtext = await self._maybe_divorce(ctx, spouse, endtext, contentment)
  File "/home/ubuntu/red-data/cogs/CogManager/cogs/marriage/marriage.py", line 1033, in _maybe_divorce
    s_temp = await m_conf(spouse).contentment()
  File "/home/ubuntu/red-venv/lib/python3.8/site-packages/redbot/core/config.py", line 1110, in member
    return self._get_base_group(self.MEMBER, str(member.guild.id), str(member.id))
AttributeError: 'NoneType' object has no attribute 'guild'

It's possible that some other commands are affected as well but I have not looked more into it.

[Request] forwarding antispam

it would be nice if this cog had an antispam feature, like a cooldown for specific users that gradually get longer and longer for repeating users. Or the ability to block them entirely.
image
Look at image posted to get what i mean
its really really annoying

[Application] Getting error when trying to apply without role

Hey there so after requesting the feature to make applications without roles I've finally worked on trying to set it up only to be met with this error right here:

Exception in command 'apply'
Traceback (most recent call last):
File "/home/dragonias/.virtualenvs/demigra/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/dragonias/demigra/cogs/CogManager/cogs/application/application.py", line 78, in apply
if not role_add:
UnboundLocalError: local variable 'role_add' referenced before assignment

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

Traceback (most recent call last):
File "/home/dragonias/.virtualenvs/demigra/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/home/dragonias/.virtualenvs/demigra/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/dragonias/.virtualenvs/demigra/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: UnboundLocalError: local variable 'role_add' referenced before assignment

But if you do the process with a role it works just fine.

[CookieStore] Command Error: inventory

[2020-03-22 22:53:20] [ERROR] red: Exception in command 'inventory'
Traceback (most recent call last):
  File "c:\__\coding\redenv\lib\site-packages\discord\ext\commands\core.py", line 83, in wrapped
    ret = await coro(*args, **kwargs)
  File "C:\__\coding\Soundwave\cogs\CogManager\cogs\cookiestore\cookiestore.py", line 636, in inventory
    desc = humanize_list(lst)
  File "c:\__\coding\redenv\lib\site-packages\redbot\core\utils\chat_formatting.py", line 382, in humanize_list
    raise IndexError("Cannot humanize empty sequence") from None
IndexError: Cannot humanize empty sequence

[Marriage] Cannot change action price

When attempting to change the price of an action with [p]marriage changeprice [action] [price], the following error is thrown:

Exception in command 'marriage changeprice'
Traceback (most recent call last):
  File "/home/blank/Desktop/red/lib/python3.8/site-packages/discord/ext/commands/core.py", line 83, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/blank/.local/share/Red-DiscordBot/cogs/CogManager/cogs/marriage/marriage.py", line 206, in marriage_changeprice
    await self.config.guild(ctx.guild).shit.get_raw(action)
  File "/home/blank/Desktop/red/lib/python3.8/site-packages/redbot/core/config.py", line 504, in get_raw
    raw = await self.driver.get(identifier_data)
  File "/home/blank/Desktop/red/lib/python3.8/site-packages/redbot/core/drivers/json.py", line 138, in get
    partial = partial[i]
KeyError: 'shit'

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

Traceback (most recent call last):
  File "/home/blank/Desktop/red/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 892, in invoke
    await ctx.command.invoke(ctx)
  File "/home/blank/Desktop/red/lib/python3.8/site-packages/redbot/core/commands/commands.py", line 799, in invoke
    await super().invoke(ctx)
  File "/home/blank/Desktop/red/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1234, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/home/blank/Desktop/red/lib/python3.8/site-packages/discord/ext/commands/core.py", line 797, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/blank/Desktop/red/lib/python3.8/site-packages/discord/ext/commands/core.py", line 92, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 'shit'

This happens only when supposedly valid parameters are passed, i.e. [p]marriage changeprice house 100000. Anything that would throw a valid exception, such as an incorrect action or a price < 0 returns the correct response.

[UniqueName] Message is a template response

When a forbidden name is found, there is no info is there; but a template response

Latest RedBot build

image


                warning_text = """**Unique Name warning:**
                
                Discovered a forbidden name: '{}'. 
                User: {} - `{}#{} ({})`"""
                await channel.send(warning_text.format(after.name,after.mention,after.name,after.discriminator,after.id))

Fixing the code up some, when it runs, it says random names

Reacttickets

i cant find the right command to start the setup for reactticktes.

Can you tell me the base command please ?

[SUGGESTION] "Application" Cog

Hey there! It's me again!

So I am coming in here for this beautiful cog with a few suggestions the following being if possible:

  1. Remove the need of a Role as a option
  2. Customize how long the Applicant has per answer we sometimes get answers that take up to 5 minutes
  3. And possible also allow to remove or customize Questions?

Thank you so much in Advance!

Help regarding forking cookie cog for own purpose.

Hey Sauri,

I love your cookie cog and have been using it for a while now, Just wondered if its possible if i can fork it and edit it to be something else instead of cookies.

Thank you for your time

Crumbs.

[Counting] Error

Ignoring exception in on_message
Traceback (most recent call last):
  File "c:\__\coding\redenv\lib\site-packages\discord\client.py", line 333, in _run_event
    await coro(*args, **kwargs)
  File "C:\__\coding\Soundwave\cogs\CogManager\cogs\counting\counting.py", line 252, in on_message
    await message.delete()
  File "c:\__\coding\redenv\lib\site-packages\discord\message.py", line 801, in delete
    await self._state.http.delete_message(self.channel.id, self.id)
  File "c:\__\coding\redenv\lib\site-packages\discord\http.py", line 243, in request
    raise NotFound(r, data)
discord.errors.NotFound: 404 Not Found (error code: 10008): Unknown Message

[Suggestion] Daily cookie

Hi
It would be cool if specific could rank gets more of daily cookies.
I mean we have 3 diffrent ranks:
Normal rank gets 2 cookies per day,
Better rank gets 4 cookies per day,
Much Better rank gets 6 cookies per day.

[Forwarding] Says delivered but no actual message sent

File redenv\lib\site-packages\discord\client.py", line 312, in _run_event
await coro(*args, **kwargs)
File \cogs\CogManager\cogs\forwarding\forwarding.py", line 79, in on_message
await self._send_to(embed)
File \cogs\CogManager\cogs\forwarding\forwarding.py", line 27, in _send_to
await self.bot.is_owner(discord.Object(id=None))
File lib\site-packages\discord\object.py", line 66, in init
id = int(id)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

[Suggestion] Suggestion

Maybe an option to set your own reaction icons if you don't want to use the regular marks that Discord has, :white_check_mark: and :negative_squared_cross_mark:.

[AdvancedLock] enable using role id in conjunction with role/channel name

Hey Sauri,
I just wanted to give input about advancedlock. Btw, it's an awesome cog, thank you!
I just find it sometimes easier to just put the role/channel id instead of the role/channel name when setting up the cog, especially I almost always forget the capital letters in my roles.

Thank you.

[Counting] Rate Limits

The counting cog needs to be updated to match the new Discord channel topic rate limits.

[suggest] the cog spamming Ignoring exception in on_reaction_add

hi the cog keep spamming this error :

Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/.local/share/Red-DiscordBot/data/candy/cogs/CogManager/cogs/suggestion/suggestion.py", line 494, in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: if message.channel.id == await self.config.guild(message.guild).suggest_id():
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/redbot/core/config.py", line 976, in guild
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: return self._get_base_group(self.GUILD, str(guild.id))
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: AttributeError: 'NoneType' object has no attribute 'id'
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Ignoring exception in on_reaction_add
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: Traceback (most recent call last):
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: File "/root/redenv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
Jul 28 11:10:03 vmi538808.contaboserver.net python[20371]: await coro(*args, **kwargs)

[enhancement] Suggestion cog - ability to create multiple suggestions channels

Hello,

I would like to propose a feature for the suggestion cog: the ability to create multiple suggestions channels.

Context:
I'm working on a NSFW server with reddit feeds and I implemented this cog so that members will suggest new features in #馃挕鈹俿erver-sugg始s. I would like to separate the types of suggestions people will do in different channels: server-related sugg's in #馃挕鈹俿erver-sugg始s and new reddit feeds sugg's in #馃挕鈹俧eeds-sugg始s.

Proposal:
Something like this: -suggestset channel <what> [channel].
ex:

  • -suggestset channel server #馃挕鈹俿erver-sugg始s
  • -suggestset channel feed #馃挕鈹俧eeds-sugg始s

And members would suggest like this: -suggest <what> <suggestion>
ex:

  • -suggest server [...]
  • -suggest feed [...]

Thank you for reading.

[Marriage] toggable global/guild

Make marriage be toggable between global and per guild. Because I can't decide which one to make permanent. And I also don't know how to easily make this.

[suggest] Rejected Suggestion issues

image

On rejecting a Suggestion, it moves it to the correct Rejected Channel and DMs the original author, but !showsuggestion lists it as Approved, and addreason reports it isn't Rejected.

image

image

image

Bug or Error on Cookies.py (steal cmd)

Here's the traceback... :/

PS: The author have currently -4 cookies !

Exception in command 'cookies steal'
Traceback (most recent call last):
  File "/home/hangenbo/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/hangenbo/Striker/customcogs/cookies/cookies.py", line 124, in steal
    penalty = random.randint(1, cookies_penalty)
  File "/usr/lib/python3.8/random.py", line 248, in randint
    return self.randrange(a, b+1)
  File "/usr/lib/python3.8/random.py", line 226, in randrange
    raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (1, 0, -1)

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

Traceback (most recent call last):
  File "/home/hangenbo/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 902, in invoke
    await ctx.command.invoke(ctx)
  File "/home/hangenbo/redenv/lib/python3.8/site-packages/redbot/core/commands/commands.py", line 832, in invoke
    await super().invoke(ctx)
  File "/home/hangenbo/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1340, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/home/hangenbo/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 864, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/hangenbo/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: ValueError: empty range for randrange() (1, 0, -1)```

Add marriage cog

Member commands:

  • marry <someone>
  • divorce <someone>
  • crush <someone>
  • addabout [your about text] - ???
  • about [someone] - depends on the one above, it'd basically be a simple text only/embed profile
  • exes [someone]

Mod/Admin commands:

  • marriage currency <0/1> - 0 = Red's economy, 1 = my cookies
  • marriage marprice <price>
  • marriage divprice <price>
  • marriage toggle
  • marriage multiple <yes/no>
  • marriage reset [yes/no]

EDIT:
Okay, we're making it more complex LUL

  • flirt
  • fuck
  • dinner
  • date
  • gifts

[CookieStore] Command raised an exception: KeyError

Hey,
I can't seem to add roles or items to the shop. I get these errors:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/var/lib/Red-DiscordBot/kai/cogs/CogManager/cogs/cookiestore/cookiestore.py", line 99, in cookiestoreset_add_role
    if await conf.roles.get_raw(role):
  File "/usr/lib/python3.9/site-packages/redbot/core/config.py", line 504, in get_raw
    raw = await self.driver.get(identifier_data)
  File "/usr/lib/python3.9/site-packages/redbot/core/drivers/json.py", line 138, in get
    partial = partial[i]
KeyError: 'roles'

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

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/usr/lib/python3.9/site-packages/redbot/core/commands/commands.py", line 832, in invoke
    await super().invoke(ctx)
  File "/usr/lib/python3.9/site-packages/discord/ext/commands/core.py", line 1348, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/usr/lib/python3.9/site-packages/redbot/core/commands/commands.py", line 832, in invoke
    await super().invoke(ctx)
  File "/usr/lib/python3.9/site-packages/discord/ext/commands/core.py", line 1348, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/usr/lib/python3.9/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/usr/lib/python3.9/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: KeyError: 'roles'

Trying to add an item changes the last line in the error with:
Command raised an exception: KeyError: 'items'

I'm running on the latest version of Red-DiscordBot (v3.4.13) with Python 3.9.

Thank you.

Suggestion cog Issue

Hi there,

im fairly new in here and tried to set up the suggestion module for my bot. After following the Instructions on setup, I tried to deny a test suggestion which resulted in the following:

Converting to "int" failed for parameter "suggestion_id".

Help is kindly appreciated
thanks!
suggestion

[Application] Bug in marriage cog

I know it is simply cosmetic/for fun.

If you have at least 1 of any gift, you are able to gift yourself the item to duplicate it.
Very easy to replicate.

X: perform gift @ Y food
馃巵 X has gifted one food to Y
Available gifts:
food - 1 pc

Y: perform gift @ Y food
馃巵 Y has gifted one food to Y
Available gifts:
food - 2 pcs

[Application] Error in apply and setapply questions

After I set custom questions, an error happened for apply and setapply questions. I provided the traceback log below.

Exception in command 'apply'
Traceback (most recent call last):
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/mkurisu069/.local/share/Red-DiscordBot/data/Redbot/cogs/CogManager/cogs/application/application.py", line 110, in apply
await ctx.author.send(question[0])
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/discord/abc.py", line 935, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed,
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/discord/http.py", line 247, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message

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

Traceback (most recent call last):
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 902, in invoke
await ctx.command.invoke(ctx)
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 864, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/mkurisu069/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: 50006): Cannot send an empty message

Exception in command 'setapply questions'
Traceback (most recent call last):
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/mkurisu069/.local/share/Red-DiscordBot/data/Redbot/cogs/CogManager/cogs/application/application.py", line 223, in setapply_questions
current_questions += "\n" + question[0]
TypeError: can only concatenate str (not "NoneType") to str

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

Traceback (most recent call last):
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 902, in invoke
await ctx.command.invoke(ctx)
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/redbot/core/commands/commands.py", line 832, in invoke
await super().invoke(ctx)
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 1340, in invoke
await ctx.invoked_subcommand.invoke(ctx)
File "/home/mkurisu069/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 864, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/mkurisu069/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: TypeError: can only concatenate str (not "NoneType") to str

[Application] Optional role to accept and deny applicants

Hey hey,

At the moment only admins are able to handle the applications, however I recently got someone that has a dedicated role for people that are handling those applications.

Hence why I want to request a option to add a role that is allowed to handle those applications beside the admins.

Do you want to implement this? Otherwise I open a bounty on the cogboard for a costume one.

Thanks!

Picking from no users in a role equals to IndexError: Cannot choose from an empty sequence

When you attempt to rpick an empty role, it'll throw out an exception error:

Traceback (most recent call last):
  File "/home/satan/.virtualenvs/satan/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/satan/satan/cogs/CogManager/cogs/pick/pick.py", line 54, in rpick
    winner = random.choice(role.members)
  File "/usr/lib/python3.8/random.py", line 290, in choice
    raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence

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

Traceback (most recent call last):
  File "/home/satan/.virtualenvs/satan/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 903, in invoke
    await ctx.command.invoke(ctx)
  File "/home/satan/.virtualenvs/satan/lib/python3.8/site-packages/discord/ext/commands/core.py", line 855, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/satan/.virtualenvs/satan/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: IndexError: Cannot choose from an empty sequence```

Textual mistake in suggestion cog

Hey there , so in the suggestion cog when we do [p]suggestion it loads a menu .. the issue is that the description is same for approved as well as channel ..

Is the Application cog broken?

I tried out the Application cog on my bot, and I鈥檓 sure I set every setting to what I wanted it to be. I then approved my own application, and it said I didn鈥檛 apply for anything. I got a friend to try and do it and the same thing happened. Not sure if I haven鈥檛 configured the cog correctly or if it鈥檚 just broken. I鈥檝e attached a screenshot of my settings.
78FCCD02-F1E7-493A-8973-0B43EE9AFA9A

[counting] channel description toggle

unless im missing it. it would be fantastic to toggle the channel description to off. im finding that when using the extendedmodlogs cog it floods the channel set for logs with server changes.

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.