I have a quote command to every 20min give me a quote about socials, discord etc, but the quotes are always random.
Is there any command similar to quote where you can quote arbitrary from a list?
Thanks for reading, cheers!
Quirky Fox said:$(eval a=Math.floor($(count)%3);if(a==0){a=3}else{a=a};a)
OMG thank you so much, I search so much for a code like this and tried myself and never could do it!
Thank you!
If I had quotes and start having 4 or 5 quotes, do I change bith 3's in this code to 4 or 5? Or only one of them?
Thanks so much again for taking the time!
I’m gonna have to do some testing I’ll get back to you.
Ok, so I didn’t know this but apparently the $(count) variable is not allowed in timers. But don’t worry there is a fix I can do just use this in place of the previous one:
$(eval a="$(time UTC "h:mm:ss")".split(":");b=parseInt(a[1]);if(b<20){c=1}else if(b<40&&b>19){c=2}else{c=3};c)
This is just a simple work around using the timer instead of $(count) let me know if there are any issues.
This will also only work for 3 quotes as of now though it is possible to add more it will just be more complicated.
Quirky Fox said:$(eval a="$(time UTC "h:mm:ss")".split(":");b=parseInt(a[1]);if(b<20){c=1}else if(b<40&&b>19){c=2}else{c=3};c)
I'll try my friend and I'll give the feedback later. Thank you very much for taking the time!
For now I only need 3 quotes but I don't know if eventually I need to add some. For now I'm just grateful man 🙏 thank you!
Didn't find your answer? The community is on Discord.
Ask on Discord