Cog-Creators / Cog-Creators/Red-DiscordBot

Can't create dictionaries in eval with alias

Open
#3,950 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.