flare-cogs
flare-cogs copied to clipboard
giveaway reroll errors out, but still rerolls.
Describe the bug A clear and concise description of what the bug is. When I reroll the giveaway, I get this error in console
[2024-10-31 13:03:29] [ERROR] red: Exception in command 'giveaway reroll'
Traceback (most recent call last):
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/cogs/CogManager/cogs/giveaways/giveaways.py", line 270, in reroll
await self.draw_winner(giveaway)
File "/data/cogs/CogManager/cogs/giveaways/giveaways.py", line 179, in draw_winner
del self.giveaways[giveaway.messageid]
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
Output of [p]help CogName and [p]debuginfo
Kudo Lenari Help Menu
Syntax: !giveaway
Alias: !gw
Manage the giveaway system
Subcommands:
advanced Advanced creation of Giveaways.
edit Edit a giveaway.
end End a giveaway.
entrants List all entrants for a giveaway.
explain Explanation of giveaway advanced and the arguements it...
info Information about a giveaway.
integrations Various 3rd party integrations for giveaways.
list List all giveaways in the server.
reroll Reroll a giveaway.
start Start a giveaway.
Type !help <command> for more info on a command. You can also type !help <category> for more info on a category.
# Debug Info for Red:
## System Metadata:
CPU Cores: 4 (aarch64)
RAM: 2.2GB/23.4GB (11.8%)
## OS variables:
OS version: Debian GNU/Linux 12
User: docker
Python executable: /data/venv/bin/python
Python version: 3.11.10 (64bit)
Pip version: 24.2
Red version: 3.5.13
Discord.py version: 2.4.0
## Red variables:
Instance name: docker
Command line arguments: ['python', '-O', '-m', 'redbot', 'docker', '--rpc']
Global prefix(es): '!'
Owner(s): 398620861634183188 (myhm.space)
Disabled intents: None
Storage type: JSON
Data path: /data
Metadata file: /config/.config/Red-DiscordBot/config.json