Daily Saying Command

I want a command that would let me have a saying that changes each day. I don’t want it to use the same saying for the same day. So for example Monday would be saying one, then next Monday it would be saying 8 and not the same saying.
So for example:
Response: You know the old saying: saying 1
The next day it would be
Response: You know the old saying: saying 2
Thank you in advanced :slight_smile:

Upload your sayings to https://pastebin.com. See my example at https://pastebin.com/raw/Ts0DViUR to understand how to format the sayings. Each saying should be quoted, and the sayings should be separated by commas.

Then type this into your chat to add the command, replacing my raw Pastebin link with yours:

!addcom !saying $(eval r=decodeURIComponent("$(querystring $(urlfetch json https://pastebin.com/raw/Ts0DViUR))");try{s=JSON.parse(`[${r}]`);"You know the old saying: "+s[Math.floor(Date.now()/1000/60/60/24)%s.length]}catch(e){`Failed to parse sayings: ${e.message}: ${r}`.slice(0,400)})

The command will automatically rotate sayings.

When I type the command in it says “Response must be less than 400 characters”

What are you typing in?

I am typing in !saying

Please post the command you added exactly.

!addcom !saying $(eval r=decodeURIComponent("$(querystring $(urlfetch json https://pastebin.com/mb5bzry4))");try{s=JSON.parse([${r}]);"You know the old saying: "+s[Math.floor(Date.now()/1000/60/60/24)%s.length]}catch(e){Failed to parse sayings: ${e.message}: ${r}})

You need to use the raw Pastebin link, as I stated in my original post.

Oh. Sorry, I’ll be sure to do that :slight_smile:

I changed it and it works perfectly. :slight_smile: Thank you!

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