Multiple query's in a command

Hi, I’m trying to make these two commands for our channel. The first is keep track of the points given away. And the second one edit’s the first command.

!addcom !points -ul=sponsor -cd=10 | Name1 - 0 | Name2 - 0 | Name3 - 0 | Name4 - 0 | Name5 - 0 |

!addcom !pntedit -ul=mod -cd=10 -a=!commands edit !points | Name1 - $(query) | Name2 - $(query) | Name3 - $(query) | Name4 - $(query) | Name5 - $(query) |

If I run !points it works as intended.

!points
| Name1 - 0 | Name2 - 0 | Name3 - 0 | Name4 - 0 | Name5 - 0 |

And if I run !pntedit nightbot does edit !points correctly but doesn’t return

!pntedit Leader 5 10 15 20
!points
| Name1 - Leader 5 10 15 20 | Name2 - Leader 5 10 15 20 | Name3 - Leader 5 10 15 20 | Name4 - Leader 5 10 15 20 | Name5 - Leader 5 10 15 20 |

So what I wanted to achieve was that each word / number got placed at a different location in the !points command. Leader was supposed to be printed after the first name, the 5 behind the second name. and so forth.

Instead of using $(query), I tried $(query1) through $(query5) but that didn’t work either.

I couldn’t figure out how it should work and I believe there is a way to achieve what I want, but I couldn’t find it on the website or forum.

You almost had it, the arguments are available with just the number: $(1), $(2) …etc.
Info: https://docs.nightbot.tv/commands/variables/arguments

Ah thank you. I remembered there was an option for this but I totally misunderstood the arguments variables when I read through them.

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