Wikipédia:Robôs/Pedidos de aprovação/TohaomgBot

Origem: Wikipédia, a enciclopédia livre.

pedidoediçõescontadorlogsblock userblock logflag logflag botSUL util

Operator: Tohaomg

Automatic or manually assisted: Semiautomatic

Programming language(s): C# using DotNetWikiBot

Function summary: replaces raster images (jpg, gif, png) with their vector analogues (svg).

Edit period(s) (e.g. continuous, daily, one time run): Continuous

Edit rate requested: Bot makes edits as fast as it can, but if needed, I can add pauses between edits.

Already has a bot flag (Y/N): Not in pt.wiki, but in lot of other wikis

Function details: At the beginning of programs execution the old image (which needs to be replaced) and the new image (which will replace the old one) are typed manually. After that bot automatically replaces all inclusions of old image with new one in all Wikimedia projects. The code of the bot can be seen here.

Discussion[editar código-fonte]

@Tohaomg:, as I've said on meta, edits shouldn't be more than 6 per minute, and the summary should start wwith "BOT: " or "BOT: ". Full and translated summary in code could be summary.Add("en", "BOT: Substituição de imagem raster por formato SVG.");. Once the requirements are fulfill, it will take just a day or two in order to check if anyone else has any comment or objection. Alchimista Fala comigo! 10h21min de 4 de agosto de 2017 (UTC)[responder]

@Alchimista:, made required amendments in my code:
  • line 22: summary.Add("pt", "[[:pt:WP:BOT|BOT]]: Substituição de imagem raster por formato SVG.");
  • line 219: else if (site.StartsWith("pt.")) {return "pt";}
  • line 143: try {edits++; wiki_page.Save(summary[lang], true); if(st.StartsWith("pt.")) {Thread.Sleep(10000);}}
--Tohaomg (discussão) 11h34min de 4 de agosto de 2017 (UTC)[responder]
@Tohaomg: I've unblocked the bot, can you run it once, on a small amount of edits, less than 50 just to check the edit rate and the summary? Alchimista Fala comigo! 20h55min de 8 de agosto de 2017 (UTC)[responder]
@Alchimista:, ok I did it, but I overefforted a bit, so there is more than 50, sorry. --Tohaomg (discussão) 05h18min de 9 de agosto de 2017 (UTC)[responder]
@Tohaomg:: well, that's the unique black spot i saw on the test edits, but since i see no other problems and that doesn't affect the regular bot operation, I'll flag it. Despite not related to this request nor to this project, i strongly recommend add the "BOT:" part to all edit summaries, on english wikipedia was mentioned it also, and it's quite important specially on statistical query's. It's an important way of filtering human / non humam edits on the database, at least on an easy way, even if edits made by bots that no longer are flagged. Alchimista Fala comigo! 10h42min de 9 de agosto de 2017 (UTC)[responder]
Feito log Alchimista Fala comigo! 10h45min de 9 de agosto de 2017 (UTC)[responder]