Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

giveaway reroll errors out, but still rerolls. #237

Open
MayhemBill opened this issue Nov 6, 2024 · 0 comments
Open

giveaway reroll errors out, but still rerolls. #237

MayhemBill opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MayhemBill
Copy link

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
@MayhemBill MayhemBill added the bug Something isn't working label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant