Command to change other

Hello, does anyone know how the nightbot can be used so that it can edit a command with another command?
example that you can edit a birthday command, that the only thing that changes is the year
“$(countdown mm dd aaaa 00:00:00 Am/Pm Province_City” That is the command I would like the year to be changed

Hey @satzuk!

You can do it like this:

!addcom !editingCommandName -ul=mod -a=!editcom !commandToEdit $(eval '$' + '(countdown mm dd $(query) 00:00:00 Am/Pm Province_City)')

Then once you call !editingCommandName 2023, it’ll edit the year for the $(countdown) in !commandToEdit to be 2023.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.