Commands being mod only

I’m trying make a command available for the whole chat to use and but when I change the commands text to this !commands add !+ -a=!commands -ul=everyone edit !deaths $(channel) has died $(count) times. It’s still only working for mods even though the command list shows that it is at the everyone userlevel.


!+ is an alias of !commands edit (the function of !+ rides off of !commands edit), and any alias of !commands edit is mod-only by default. This cannot be changed to allow for users below mods to use !+

That said, a workaround does exist, although it will take some work on your end to set up. This workaround uses ehsankia’s quote list custom API - read more about it here.

Click this link. It will generate three links and two tokens, a public token (8 characters long) and a private token (16 characters long). The public token is located within the first generated link. The private token is located within both the second and third generated links. The tokens are found after token= and before &data=$(querystring) Copy them and keep them somewhere safe!

We can use this custom API to create a special ‘count variable’. I assume what you want is two commands: A command that displays the current death count and a command that increases the death count by 1. The former command is !deaths and the latter is !+. First, delete your current !deaths and !+ commands. Then either copy and paste these new commands into chat or add them through the Nightbot dashboard. Add the commands through chat only if you are sure no one else is there, otherwise they might see your private token (which is used to edit the list)! Replace PUBLIC_TOKEN with your public token and PRIVATE_TOKEN with your private token.

!addcom -cd=5 !deaths $(channel) has died $(eval `$(urlfetch`.split(`.`).length-1) times.
!addcom -cd=5 !+ $(eval a=`$(urlfetch`;` `) $(channel) has just died!

Feel free to change the command responses just as long as the $(eval) variables remain untouched.

thanks for the help and the quick response so i have to create the quotes then I can put the commands you listed at the bottom in chat

1 Like

Correct. Once you’ve obtained your two tokens, you can copy and paste those commands into chat. Before adding the commands, look through the command responses and replace publicTokenHere with your public token and privateTokenHere with your private token.

Ok thanks so much i was expecting that it had something to do with the edit text

1 Like

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