|
MyMiasma Wanderer
Joined: 26 Oct 2012 Posts: 56
|
Posted: Tue Mar 06, 2018 5:22 am
Simple String List variable +alias |
I have a stringlist variable named "spammers" with 6 different commands
I would like to make an alias 'spam' - and have it choose at random one of the commands from my "spammers" variable.
What is the simplest way to do this? |
|
_________________ It is better to die on your feet than to live on your knees. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Tue Mar 06, 2018 1:57 pm |
#ALIAS spam {%item(@spammers, %random(1, %numitems(@spammers)))}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
MyMiasma Wanderer
Joined: 26 Oct 2012 Posts: 56
|
Posted: Wed Mar 07, 2018 2:11 am |
Shalimar to the rescue as usual.. thanks again. :)
|
|
_________________ It is better to die on your feet than to live on your knees. |
|
|
|
|
|