GuildWiki:Bot tasks/License reminder

Purpose
This bot's purpose is to remind users who have uploaded new images without licensing information to add that information to their images.

Functioning
Unlike other bot tasks, this task would be an ongoing one. Every Monday and Thursday the bot would scan Special:Newimages (it can compile a list of files created since the last time the bot was run). Any files lacking licensing information will cause the bot to leave the following message on the uploader's talk page:

Image licensing reminder
Hello,. You are receiving this automated message because you recently uploaded files to GuildWiki. The following images appear to be missing licensing information:. Please see Image license guide for more information. Thank you for your contributions. This is an automated message from

Language and versions
This bot is programmed and run in Java and uses the Java Wiki Bot Framework. The current version posted is the final release, pending notes offered on the talk page. It is version 1.9. The bot will refer to the program as IR 1.9 to indicate the program and version number.

Issues

 * Perhaps this should be its own bot?
 * Not necessary. It won't be constantly running.
 * How often should this run?
 * Once a day is plenty. I'd say once a week is a good time but you don't want to lose users who may only log once in a while. The goal is to get users to notice rather quickly that there is an issue. The bot, however, can comfortably navigate any time interval and go through several pages on Special:Newimages. The bot will probably be run twice a week at most.
 * If a user uploaded multiple files, do they get a message for each?
 * One message listing all images that need licenses found in that run.
 * Can we also check that certain licenses include all fields?
 * Can we also check that images aren't named GW###.jpg or similar?
 * Those two tasks may be run separately. They will not be included in the scope for this bot.
 * If the user's talk page is a redirect to another page, then it will still leave a message under the redirect.
 * Redirects on userpages are mainly used to direct an IP to a registered account page or if the user has had their name changed. Since IP's cannot upload files anyway, the first part is not an issue. As for the second part, if the user has had their account changed, they will probably not be uploading files from the old account.
 * If the last run date on this page is tampered with, the bot will run with the wrong start date.
 * The start date will be read off local machine and only copied here for reference.
 * Bot edits marked as minor do not trigger the new messages notice.
 * This bot's edits will not be marked a minor. Since the edits don't appear in recent changes by default anyway, this should not be an issue.

Code
''Note: including actual code here throws off the bot. MUST be shown as an inclusion''

Sample output
Testing and sample outputs are usually shown on User talk:RogueJedi.

Last run
When the bot runs, it will update the timestamp at the bottom of this section as a courtesy. Notice that the bot actually reads the start date from a local file, so changing this date will not directly affect the bot.

Last Run:20080625004610