User talk:DatGuy/Archives/2019/January
This is an archive of past discussions about User:DatGuy. 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. |
DatBot UAA repots
Can this bot detect when a user is blocked? I regularly see it reporting usernames at UAA that are seemingly already blocked. Beeblebrox (talk) 23:10, 3 January 2019 (UTC)
- Should be fixed. Dat GuyTalkContribs 23:17, 3 January 2019 (UTC)
- Wow, that was fast, thanks! Beeblebrox (talk) 00:16, 4 January 2019 (UTC)
DatBot not reporting logged out users
{{User:ClueBot III/ArchiveNow}} Any idea why DatBot hasn't reported any IP users to WP:AIV/TB2 since 16 November 2017? Before that it looks like the majority of users reported were IPs. I don't see any changes to the code, so I'm guessing something changed MediaWiki-side. I also feel like someone else should have noticed this by now, but I can't seem to find the discussion. Suffusion of Yellow (talk) 01:10, 28 December 2018 (UTC)
- No, not sure. I'll ask around. Dat GuyTalkContribs 21:34, 29 December 2018 (UTC)
- Sorry, don't seem to know. I'll keep looking. Dat GuyTalkContribs 20:08, 16 January 2019 (UTC)
- Is there an up-to-date copy of the source available somewhere? I'll see if I can figure it out. Suffusion of Yellow (talk) 20:33, 16 January 2019 (UTC)
- @Suffusion of Yellow: Keep in mind this is, very, very, ugly code. Pastebin. Dat GuyTalkContribs 20:40, 16 January 2019 (UTC)
- Thanks, I'll take a look. Suffusion of Yellow (talk) 20:49, 16 January 2019 (UTC)
- @Suffusion of Yellow: Keep in mind this is, very, very, ugly code. Pastebin. Dat GuyTalkContribs 20:40, 16 January 2019 (UTC)
- Is there an up-to-date copy of the source available somewhere? I'll see if I can figure it out. Suffusion of Yellow (talk) 20:33, 16 January 2019 (UTC)
Ok, this is pure speculation based on my reading of https://github.com/alexz-enwp/wikitools/blob/master/wikitools/user.py. But I think the problem is with the check for u.exists
in main()
, which is always (?) False
for IPs. I don't know what else this will break, but it might fix this problem:
@@ -320,7 +320,7 @@ def main():
filter = row['f']
timestamp = row['ts']
u = user.User(site, row['u'])
- if u.exists != True:
+ if u.exists != True and not u.isIP:
continue
username = u.name.encode('utf8')
if startAllowed() == False:
Suffusion of Yellow (talk) 23:20, 16 January 2019 (UTC)
- @Suffusion of Yellow: I'm pretty sure I made that change just a few weeks ago, but I've tried to do it and restarted the task. Dat GuyTalkContribs 14:30, 17 January 2019 (UTC)
- [1] Looks good? Dat GuyTalkContribs 12:40, 18 January 2019 (UTC)
- Hooray! Was it the above-mentioned issue, or something else? Suffusion of Yellow (talk) 19:47, 18 January 2019 (UTC)
- Seems like it. Cheers. Dat GuyTalkContribs 19:57, 18 January 2019 (UTC)
- Hooray! Was it the above-mentioned issue, or something else? Suffusion of Yellow (talk) 19:47, 18 January 2019 (UTC)
DatBot and filter 68
Could you have DatBot stop reporting users who trip filter 68? See [2] and [3], where I declined a couple of block requests from the bot because neither user was being problematic: one user had moved a page and then moved it back again (resulting in eight edits: two each to the article, its talk page, and the redirects for the alternate names), while the other was just moving some drafts into mainspace. Either the filter's temporarily messed up, or it's been badly designed, since there's no way we should block users merely because of edits like these, and I don't think that the bot shouldn't be reporting based on a problematic filter. Nyttend (talk) 23:16, 23 January 2019 (UTC)
- User:DatBot/filters for future reference. Dat GuyTalkContribs 00:30, 24 January 2019 (UTC)
- Thanks for the help! Nyttend (talk) 00:46, 24 January 2019 (UTC)
DatBot
I've seen the bot resizing a lot of non-free images. I was wondering if it could be set to resize artworks to 300x300px instead of the current size since that is considered the optimal size for artworks.--NØ 14:34, 29 January 2019 (UTC)
- I forgot the exact formula but it is set to the best that can be done right now (does that make sense?). Dat GuyTalkContribs 14:45, 29 January 2019 (UTC)