[Feature Request] Ability to get multiple arguments with one variable

Asked Oct 25, 2021·2 replies·Last activity 4 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.

Idea

It’s definitely not a necessity by any means but I think it would be very helpful in certain instances of making commands if you could pull specific words from a query.

Here are the three I think would be most useful:

1.) $(n:)

!addcom !test $(3:)
!test Hello World! How is your day?
> Returns:
> How is your day?
> Returns the third argument and everything after

Or

2.) $(:n)

!addcom !test $(:4)
!test What does this command do?
> Returns:
> What does this command
> Returns argument 4 and everything before it.

Or

3.) $(n,n+x)

!addcom !test $(1,3)
!test Hey guys what is up?
> Returns:
> Hey guys what
> Returns everything from argument 1 to 3.

Notes

I do understand that this isn’t top priority by any means but I think it would be a useful tool in certain instances.

Also maybe an option to url encode it would be useful to. The nesting limit isn’t an issue because you can use an alias command but if you want to make just a singular command with no alias it could be helpful.

Thank you for taking your time to read this post and I hope you do consider it. ❤️

2 replies

Very interesting suggestion in my opinion.

I'll keep this in mind for the future. There's numerous improvements to be made around custom command, but the infrastructure needs some rewrites first.