Thank you for being patient while your repo was reviewed. There are a few errors that are able to reasonably happen under normal use that need to be cleaned up, but otherwise this application looks good! Please let me know when you have made the required changes.
Commit hash: c6f0d0c8b4681932ecdcaf5a444de2d56430fb7d
Red v3.4.5
Consider anything prefaced with “You might want” to be optional
General
-You might want to use the install_msg
info.json key.
Kill
-Deleting every kill response and then attempting to kill someone throws an exception.
Traceback (most recent call last):
File "kill.py", line 132, in kill
msg = kills[random.randint(0, len(kills) - 1)]
File "Python\Python38-32\lib\random.py", line 248, in randint
return self.randrange(a, b+1)
File "Python\Python38-32\lib\random.py", line 226, in randrange
raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (0, 0, 0)
-Deleting every kill response then attempting to use [p]killset list
throws an exception.
Traceback (most recent call last):
File "kill.py", line 94, in _list
await ctx.send(embed=embed)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.2.value: This field is required
-Trying to delete a kill response out of the expected bounds throws an exception. The handling that is currently there does not prevent the error from being thrown, and is formatted weird.
Traceback (most recent call last):
File "kill.py", line 66, in _delete
kill.pop(num)
IndexError: pop index out of range
-Custom kill messages can cause errors if curly braces are used in non-intended ways. You might want to catch this error or use .replace
instead.
Example: {test}
throws
Traceback (most recent call last):
File "kill.py", line 135, in kill
msg.format(
KeyError: 'test'
-You might want to check for add_reactions
perms in the commands that use them.
Traceback (most recent call last):
File "kill.py", line 51, in _add
await ctx.message.add_reaction("\U00002705")
discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
-You might want to use 2 newlines to de-bold the second two lines of the helptext of [p]killset add
.
"""
Add a new kill message.
{killer} and {victim} will be replaced with a users mention
{killer2} and {victim2} will be replaced with a users name in italics
"""
Payday
-The [p]pdconfig
settings check if the value is negative and send a message, but will still set to a negative value.
-Booting up the cog for the first time and running [p]freecredits times
without configuring anything, I got an error.
Traceback (most recent call last):
File "payday.py", line 109, in freecredits_times
await ctx.send(strings)
discord.errors.HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message
-You might want to reword the help text of [p]freecredits
, the grammar does not make sense to me.
-You might want to add a warning message when running [p]freecredits all
when all sources are on cooldown or disabled.