I’m sorry, but what are you talking about?
What is this rank command about? Nightbot doesn’t have a $(rankupdate) variable. Don’t even know what G1 means?
Don’t assume we know what you’re talking about when you open a topic, we aren’t in your head, instead, be specific!
I am trying to make a dynamic updatable command.
I want for an administrator to be able to run the !updaterank command and change it to a different set of characters (b1 s1 s2 g1), but all it would do is update variable in the constant in the command.
The values in !updaterank are not important, whats important is that when someone types in !rank
it would output xxx user’s rank is currently: valueof(!rankupdate).
Ah, I see, you want to store a value inside a command, right?
This isn’t possible without editing the entire command, Nightbot doesn’t have a memory, it can’t save values inside variables, so it doesn’t have constants, it just runs code when called.
So here’s the solution I can offer (you just need to copy/paste the code fields in your chat):
• !rankupdate, you call it like this !rankupdate [rank], so for example !rankupdate G1:
!addcom !rankupdate -ul=mod -a=!editcom !rank $(user) → $(channel)'s rank currently is: $(query)
• !rank:
!addcom !rank $(user) → $(channel)'s rank currently is: