![]() | This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Would you please instruct your bot to kindly stop tagging images for deletion that were already deleted several days ago? (e.g., Special:Undelete/File:Type 1 Diabetes Awareness Ribbon.jpg) This seems to be a recurring problem. Magog the Ogre ( talk) ( contribs) 12:49, 31 July 2012 (UTC)
Hi. About your bot. appointing an id and removing template right away, what is it? Pessimist2006 ( talk) 19:58, 4 August 2012 (UTC)
Hello Chris G. My account was renamed a few months ago, so I updated WP:FRS to reflect the change. In spite of that, the bot keeps notifying my old talk page. Perhaps the bot has an old cached version of WP:FRS or isn't reading the page before running? Thanks — DoRD ( talk) 14:35, 6 August 2012 (UTC)
Hi Chris. I have made a request for a bot at Wikipedia:Bot requests/Archive 49#Keeping track of Good articles that might interest you. Hopefully, if it is doable, it could work with GA bot to present more information at WP:GAN. Regards AIRcorn (talk) 09:41, 8 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Template talk:Infobox software. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 12:17, 15 August 2012 (UTC)
Question about edit summaries used by RFC bot [1]: why is it that for several weeks now, every edit summary of RFC bot on Wikipedia:Requests for comment/Language and linguistics has been claiming it is removing the same case Talk:Cigarette holder over and over again, when that entry has in reality been gone for months? That's really a bit annoying. Fut.Perf. ☼ 13:49, 13 August 2012 (UTC)
Hi! Just a couple of quick questions, ...
I'm asking as I am sorting out a few bits and pieces for Wikinews, and the Wikinewsie "toolserver". For some of the reporting work planned for the Paralympics we'll have people at the games dumping audio/video/images into Dropbox and I need to have our server do tasks like convert to free formats and upload to the appropriate wikis. -- Brian McNeil / talk 12:57, 15 August 2012 (UTC)
I don't have any sample scripts, but this should (hopefully) work:
<?php
require_once 'botclasses.php';
$wiki = new wikipedia;
$username = 'my_bot_account';
$password = 'my_bot_password';
$wiki->url = 'http://en.wikipedia.org/w/api.php'; // Change this to suit your wiki
$wiki->user_agent = 'MyBot with botclasses.php';
$wiki->editlaps = 5; // delay in seconds between 2 edits (default 20s)
$wiki->login($username,$password);
$destination = 'Example.jpg'; // The file name for when the image is uploaded to the wiki
$local_file_path = '/home/foobar/example.jpg'; // The location of the file on the local computer
$page_description = 'An example image. {{PD}}'; // The page description
$wiki->upload($destination,$local_file_path,$page_description);
?>
I hope this helps, and apologies about the pretty awful state the code base is in. -- Chris 11:17, 16 August 2012 (UTC)
<?php
/* English Wikinews Dropbox auto-uploader
Version History:
0.0.1-alpha August 16, 2012 BMcN Initial, limited scope.
Description:
This script is intended to be run off cron, and to scan relevant directories
within the shared dropbox area for upload to English Wikinews.
*/
require_once './botclasses.php';
$page_text_default =
"This file was automatically uploaded by [[User:NewsieBot|NewsieBot]] from the accredited reporters' shared Dropbox
It is the responsibility of the user who shared this file via Dropbox to ensure it is correctly categorised and
ownership claimed before making use of the file in any news articles\n
Please help ensure this bot is not misused, ''whilst still allowing reasonable time for reporters to resolve issues'',
by not speedily deleting files unless still unused after one week.\n
[[Category:Imported from Dropbox]]\n[[Category:Uploaded by NewsieBot]]";
$wiki = new wikipedia;
$username = 'NewsieBot';
$password = '************************';
$wiki->url = 'https://en.wikinews.org/w/api.php'; // Change this to suit your wiki
## $wiki->user_agent = 'NewsieBot with botclasses.php'; // This gave errors
$wiki->editlaps = 1; // delay in seconds between 2 edits (default 20s)
$wiki->login($username,$password); // Log in to the wiki.
// Now, we keep a list of the files we process - so they can be moved elsewhere once uploaded
$proc_files = array();
$to_be_converted = array();
$path = 'Dropbox/Wikinews/upload_enWN/'; // Where we'll scan from.
if ($handle = opendir( $path ) ) {
echo "Directory handle: $handle\n";
echo "Files:\n";
while (false !== ( $file = readdir($handle))) {
$pathAndFile = $path.$file;
if ( !is_dir ( $pathAndFile ) ) {
$file_components = pathinfo($pathAndFile);
switch ($file_components'extension']) {
case "png":
case "gif":
case "jpg":
case "jpeg":
case "xcf":
case "pdf":
case "mid":
case "ogg":
case "ogv":
case "svg":
case "djvu":
case "tiff":
case "tif":
case "oga":
echo "Uploading $file\n";
$dest = $file;
if ( ( $wiki->upload($dest,$pathAndFile,$page_text_default) ) !== false )
$proc_files[] = $file;
break;
case "mpeg":
case "mpg":
case "avi":
echo "Need to convert $file\n";
$to_be_converted[] = $file;
break;
default:
echo "File $file is not a type I can handle. Sorry\n";
break;
}
}
}
}
closedir($handle);
}
$x = 0;
foreach ($to_be_converted as $file) {
rename( $path.$file, $path.'converting/'.$file );
}
$x = 0;
foreach ($proc_files as $file) {
rename( $path.$file, $path.'done/'.$file );
}
?>
Could you take a look at this diff: http://en.wikipedia.org/?title=Talk:Information_technology&diff=507849405&oldid=507846099 The bot appears to have created an entry in the appropriate RfC subpage, as well as assigning an ID here. Not sure what to do without confusing the bot even more. -- Boson ( talk) 17:18, 17 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Template talk:Magazine. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 13:15, 18 August 2012 (UTC)
Hi Chris. I think WP:W is the best and I really appreciate that RFC bot keeps it updated. I think your bot is a fabulous resource for the community and I thank you kindly for providing us with such a valuable tool. Anyhoo, I was curious about the gravely voice? Thanks for all the support you've given to the community. Kind regards. 64.40.54.17 ( talk) 14:34, 19 August 2012 (UTC)
Hi, at my user page, the status template for your bot does not appear to be working. Did I do something wrong? My status page is at User:Thekillerpenguin/status, so can you take a look? Thekillerpenguin (talk) 03:40, 21 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Template talk:Infobox company. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 13:15, 21 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Wikipedia talk:Template messages/User talk namespace. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 14:15, 24 August 2012 (UTC)
Hello,
why your bot is not adding my recently nominated articles such as Myxogastria? Regards.-- Kürbis ( ✔) 17:57, 23 August 2012 (UTC)
Hi Chris. RFC Bot seems to be mucking up the formatting at Wikipedia:Requests for comment/Economy, trade, and companies with new listings appearing indented from the one above. Could you take a look? It maybe to do with the info box in the listing at the top. Thanks! 203.27.72.5 ( talk) 00:26, 26 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Wikipedia talk:Teahouse. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 14:15, 27 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Wikipedia:Requests for comment/Memento. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 14:15, 30 August 2012 (UTC)
![]() | This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Would you please instruct your bot to kindly stop tagging images for deletion that were already deleted several days ago? (e.g., Special:Undelete/File:Type 1 Diabetes Awareness Ribbon.jpg) This seems to be a recurring problem. Magog the Ogre ( talk) ( contribs) 12:49, 31 July 2012 (UTC)
Hi. About your bot. appointing an id and removing template right away, what is it? Pessimist2006 ( talk) 19:58, 4 August 2012 (UTC)
Hello Chris G. My account was renamed a few months ago, so I updated WP:FRS to reflect the change. In spite of that, the bot keeps notifying my old talk page. Perhaps the bot has an old cached version of WP:FRS or isn't reading the page before running? Thanks — DoRD ( talk) 14:35, 6 August 2012 (UTC)
Hi Chris. I have made a request for a bot at Wikipedia:Bot requests/Archive 49#Keeping track of Good articles that might interest you. Hopefully, if it is doable, it could work with GA bot to present more information at WP:GAN. Regards AIRcorn (talk) 09:41, 8 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Template talk:Infobox software. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 12:17, 15 August 2012 (UTC)
Question about edit summaries used by RFC bot [1]: why is it that for several weeks now, every edit summary of RFC bot on Wikipedia:Requests for comment/Language and linguistics has been claiming it is removing the same case Talk:Cigarette holder over and over again, when that entry has in reality been gone for months? That's really a bit annoying. Fut.Perf. ☼ 13:49, 13 August 2012 (UTC)
Hi! Just a couple of quick questions, ...
I'm asking as I am sorting out a few bits and pieces for Wikinews, and the Wikinewsie "toolserver". For some of the reporting work planned for the Paralympics we'll have people at the games dumping audio/video/images into Dropbox and I need to have our server do tasks like convert to free formats and upload to the appropriate wikis. -- Brian McNeil / talk 12:57, 15 August 2012 (UTC)
I don't have any sample scripts, but this should (hopefully) work:
<?php
require_once 'botclasses.php';
$wiki = new wikipedia;
$username = 'my_bot_account';
$password = 'my_bot_password';
$wiki->url = 'http://en.wikipedia.org/w/api.php'; // Change this to suit your wiki
$wiki->user_agent = 'MyBot with botclasses.php';
$wiki->editlaps = 5; // delay in seconds between 2 edits (default 20s)
$wiki->login($username,$password);
$destination = 'Example.jpg'; // The file name for when the image is uploaded to the wiki
$local_file_path = '/home/foobar/example.jpg'; // The location of the file on the local computer
$page_description = 'An example image. {{PD}}'; // The page description
$wiki->upload($destination,$local_file_path,$page_description);
?>
I hope this helps, and apologies about the pretty awful state the code base is in. -- Chris 11:17, 16 August 2012 (UTC)
<?php
/* English Wikinews Dropbox auto-uploader
Version History:
0.0.1-alpha August 16, 2012 BMcN Initial, limited scope.
Description:
This script is intended to be run off cron, and to scan relevant directories
within the shared dropbox area for upload to English Wikinews.
*/
require_once './botclasses.php';
$page_text_default =
"This file was automatically uploaded by [[User:NewsieBot|NewsieBot]] from the accredited reporters' shared Dropbox
It is the responsibility of the user who shared this file via Dropbox to ensure it is correctly categorised and
ownership claimed before making use of the file in any news articles\n
Please help ensure this bot is not misused, ''whilst still allowing reasonable time for reporters to resolve issues'',
by not speedily deleting files unless still unused after one week.\n
[[Category:Imported from Dropbox]]\n[[Category:Uploaded by NewsieBot]]";
$wiki = new wikipedia;
$username = 'NewsieBot';
$password = '************************';
$wiki->url = 'https://en.wikinews.org/w/api.php'; // Change this to suit your wiki
## $wiki->user_agent = 'NewsieBot with botclasses.php'; // This gave errors
$wiki->editlaps = 1; // delay in seconds between 2 edits (default 20s)
$wiki->login($username,$password); // Log in to the wiki.
// Now, we keep a list of the files we process - so they can be moved elsewhere once uploaded
$proc_files = array();
$to_be_converted = array();
$path = 'Dropbox/Wikinews/upload_enWN/'; // Where we'll scan from.
if ($handle = opendir( $path ) ) {
echo "Directory handle: $handle\n";
echo "Files:\n";
while (false !== ( $file = readdir($handle))) {
$pathAndFile = $path.$file;
if ( !is_dir ( $pathAndFile ) ) {
$file_components = pathinfo($pathAndFile);
switch ($file_components'extension']) {
case "png":
case "gif":
case "jpg":
case "jpeg":
case "xcf":
case "pdf":
case "mid":
case "ogg":
case "ogv":
case "svg":
case "djvu":
case "tiff":
case "tif":
case "oga":
echo "Uploading $file\n";
$dest = $file;
if ( ( $wiki->upload($dest,$pathAndFile,$page_text_default) ) !== false )
$proc_files[] = $file;
break;
case "mpeg":
case "mpg":
case "avi":
echo "Need to convert $file\n";
$to_be_converted[] = $file;
break;
default:
echo "File $file is not a type I can handle. Sorry\n";
break;
}
}
}
}
closedir($handle);
}
$x = 0;
foreach ($to_be_converted as $file) {
rename( $path.$file, $path.'converting/'.$file );
}
$x = 0;
foreach ($proc_files as $file) {
rename( $path.$file, $path.'done/'.$file );
}
?>
Could you take a look at this diff: http://en.wikipedia.org/?title=Talk:Information_technology&diff=507849405&oldid=507846099 The bot appears to have created an entry in the appropriate RfC subpage, as well as assigning an ID here. Not sure what to do without confusing the bot even more. -- Boson ( talk) 17:18, 17 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Template talk:Magazine. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 13:15, 18 August 2012 (UTC)
Hi Chris. I think WP:W is the best and I really appreciate that RFC bot keeps it updated. I think your bot is a fabulous resource for the community and I thank you kindly for providing us with such a valuable tool. Anyhoo, I was curious about the gravely voice? Thanks for all the support you've given to the community. Kind regards. 64.40.54.17 ( talk) 14:34, 19 August 2012 (UTC)
Hi, at my user page, the status template for your bot does not appear to be working. Did I do something wrong? My status page is at User:Thekillerpenguin/status, so can you take a look? Thekillerpenguin (talk) 03:40, 21 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Template talk:Infobox company. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 13:15, 21 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Wikipedia talk:Template messages/User talk namespace. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 14:15, 24 August 2012 (UTC)
Hello,
why your bot is not adding my recently nominated articles such as Myxogastria? Regards.-- Kürbis ( ✔) 17:57, 23 August 2012 (UTC)
Hi Chris. RFC Bot seems to be mucking up the formatting at Wikipedia:Requests for comment/Economy, trade, and companies with new listings appearing indented from the one above. Could you take a look? It maybe to do with the info box in the listing at the top. Thanks! 203.27.72.5 ( talk) 00:26, 26 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Wikipedia talk:Teahouse. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 14:15, 27 August 2012 (UTC)
Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Wikipedia:Requests for comment/Memento. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. — RFC bot ( talk) 14:15, 30 August 2012 (UTC)