How to check the second string for $(query)

i plan to have a command which can determine the second string is enter correctly or not.
Eg: (the default of the second string is rabbit)
if i type !hunt tiger rabbit rat (it will show: the best!)
if i type !hunt tiger cat rat (it will show: Fail!)

the code: $(eval a="$(query).split(" “)”;b=a.[2];b.match(“rabbit”)?“the best!”:“Fail!”)

$(eval decodeURIComponent("$(querystring $(2))").toLowerCase()=="rabbit"?"the best!":"Fail!")
1 Like

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