Command to change other

Asked Oct 31, 2022·1 reply·Last activity 3 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

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

1 reply

Hey @Honest Skunk!

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.