Making a command that adds a command that uses a query


I want to do something like this:
!commands edit !nighton -ul=moderator -a=!commands edit !nightsay @anonuser $(query)

but because of how it works, if you type “!nightsay hello” it’ll respond with “@anonuser” instead of “@anonuser hello”


You want a command !nighton that edits another command !nightsay so its response is:

@anonuser $(query)

Problem is, instead of putting a $(query) variable in the response, !nighton will take your current query and stick it in place of $(query) when editing !nightsay. As far as I know, there’s no way to create an alias of !editcom that puts variables in the response of the command the alias is editing. Assuming you typed !nighton and nothing after it, it took your query, which was nothing, and edited the response of !nightsay to be:


No matter what you put after !nightsay when using that command, it will always output “@anonuser