Cog-Creators / Cog-Creators/Red-DiscordBot
Can't create dictionaries in eval with alias
Open
Category: Cogs - Alias
Status: Needs Info
Type: Bug
- Dominant language
- Python
- Stars
- 5.7k
- Forks
- 2.5k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
# Command bugs
#### Command name
`[p]alias add` and `[p]alias global add`
#### What cog is this command from?
Alias
#### What were you expecting to happen?
To successfully create an alias that ran an eval.
#### What actually happened?
It said `Arguments must be specified with a number.`
#### How can we reproduce this issue?
Attempt to create an alias to an eval that creates an empty dictionary.
Culprit: https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/redbot/cogs/alias/alias_entry.py#L172
It expects to have an integer inside the curly brackets.
Contributor guide
Assessment
This issue has not been assessed yet.