User talk:DannyS712 test/remind me.js

Remind me bot
Hi. All of you participated in a recent village pump discussion about a remind me bot. I'm happy to report that I've made some good progress towards creating one, and was wondering if any of you would be willing to help me test it. Basically, I'm asking you to import this script. It will add a portlet to schedule a reminder. On any page, you can click it, select how many days from then you want to be reminded, and then any custom reminder you want. The reminder is then scheduled in your /remind.json page. Would any of you be willing to test it out? I can't really build the bot part without a user base to detect... Thanks, --DannyS712 (talk) 07:22, 5 February 2019 (UTC)
 * Nice work! However you should be very weary of spending a lot of time on this. A proper MediaWiki solution will be worked on this year. The big issue I see with the JavaScript solution is that the reminders are publicly viewable. You also need to be on the wiki to get the notification (as opposed to getting an email, or echo notification while on another wiki). Don't let me stop you from working on it further... I would just hate to see your hard work become obsolete! Regards, &mdash; MusikAnimal  talk  17:18, 5 February 2019 (UTC)
 * Well if you have the notification delivered as a talk page edit, it should trigger an echo notification (and an email, depending on your preferences)... right? --DannyS712 (talk) 17:53, 5 February 2019 (UTC)
 * Yes, but that makes it even more public and obvious you're monitoring someone's page. I suspect privacy will be highly desired by users. It certainly would be for me. Also be mindful of inadvertently pinging users, say if I'm following User:MusikAnimal. The talk page message should use a fully qualified URL to the page, wrapped in . I believe bots can ping via edit summary too, though I could be wrong. Again don't let me discourage you :) &mdash; MusikAnimal  talk  18:11, 5 February 2019 (UTC)
 * Just a quick code review: I would recommend using mw.Api to interact with pages. This should trim down the code in User:DannyS712 test/get JSON.js and User:DannyS712 test/set JSON.js. If you instantiate with, then you can use   and  . There is also   but I don't think you need it if you use  . Kind regards, &mdash;  MusikAnimal  talk  18:34, 5 February 2019 (UTC)

Now what?
NOTE: I normally program in assembly language or C on small microcontrollers. I am a complete newbie when it comes to Javascript (get off my lawn and take your high-level programming languages with you, you damn kids!), so please feel free to tell me if I am doing anything stupid. Thanks!

OK, so I loaded the code to User:Guy Macon/common.js and did the usual clear the cache song and dance.

Nothing appears to have changed. How do I set a reminder? (Or is it that in my ignorance I did something wrong?) --Guy Macon (talk) 23:05, 8 February 2019 (UTC)
 * A few things
 * It would probably be easier to import the script, rather than copying it, so you get the newest version, etc
 * You have a number of errors in your common.js that may be a factor (see lines 13-16)
 * If the script runs, you should see a "Remind me" link in your "more" menu
 * If you have any javascript errors in your console. let me know - that might help me figure out the problem
 * --DannyS712 (talk) 23:26, 8 February 2019 (UTC)
 * --DannyS712 (talk) 23:26, 8 February 2019 (UTC)
 * --DannyS712 (talk) 23:26, 8 February 2019 (UTC)


 * OK, it is working now. Thanks! I set a reminder for tomorrow. I will report back when I get the reminder. --Guy Macon (talk) 03:07, 9 February 2019 (UTC)
 * You aren't going to get one - that's the part I haven't made yet --DannyS712 (talk) 04:31, 9 February 2019 (UTC)

(Child's voice from the back seat of the car) Are we there yet?
got blocked for 12 hours, went right back to vandalizing, and got blocked for 48 hours. I would veru much like to set a reminder to check his contributions after the latest block expires. Is the reminder tool ready? --Guy Macon (talk) 17:58, 23 February 2019 (UTC)
 * Nope, sorry. This is going to be a long term project - I only have so much time to feed my wikipedia addiction. Sorry --DannyS712 (talk) 18:09, 23 February 2019 (UTC)


 * Not a problem. I have this high tech device called a "wall calendar" that I use to give myself reminders. And it has no software bugs and has never been hacked over the Internet! :) --Guy Macon (talk) 18:42, 23 February 2019 (UTC)
 * update: Since I still haven't figured out how to use toolforge, here is a stopgap measure:
 * User:DannyS712/template sandbox currently invokes Module:Sandbox/DannyS712/remind in the style of Countdown but with the added parameter of  - if its time for you to be reminded of something, the reminder is shown, otherwise its blank. I'll make a script to easily add reminders to a user page (eg transclude User:Example/reminders, and add reminder templates to that) which would probably be a lot simply than a bot and doesn't need a BRFA, etc --DannyS712 (talk) 06:13, 26 February 2019 (UTC)
 * User:DannyS712/template sandbox currently invokes Module:Sandbox/DannyS712/remind in the style of Countdown but with the added parameter of  - if its time for you to be reminded of something, the reminder is shown, otherwise its blank. I'll make a script to easily add reminders to a user page (eg transclude User:Example/reminders, and add reminder templates to that) which would probably be a lot simply than a bot and doesn't need a BRFA, etc --DannyS712 (talk) 06:13, 26 February 2019 (UTC)