[02:29:21] Hello Guest85! If you have any questions, feel free to ask and someone should answer soon. [04:06:27] hello? [04:08:01] Is there any way to add an button for gallery that directly adding a image into that gallery? [07:01:09] Hello axlin! If you have any questions, feel free to ask and someone should answer soon. [08:02:59] Hello Shili33! If you have any questions, feel free to ask and someone should answer soon. [08:06:48] I have a question, if I use Extension:Gadgets, will ECMAScript6 compliant code be loaded? [10:33:21] !log mw: set php childs to 20, experimenting with trying to reduce load and improving performance. [10:34:21] Childs? [10:37:06] oh wrong channel [10:39:44] @DarkMatterMan4500 it's processes within php-fpm that handle requests [10:40:19] It's quite alright Paladox. [10:42:13] :) [12:49:29] Hello TSP184! If you have any questions, feel free to ask and someone should answer soon. [12:49:40] Hello, guys. [12:52:35] hi [12:52:43] can we help? [12:58:08] No, thanks. I just wanted to check this place out. [12:59:20] cool [15:08:42] hello [15:33:25] heh paladox forgot that #miraheze-sre is the logging channel again. paladox, you should try logging from the server. Reception123's started doing it more now and loves it :P [16:27:14] How did ATT come to MH? [16:27:28] One of our original wikis [16:27:41] Did they inport their pages from the FANDOM fork? [16:29:58] No they weren't on fandom to my knowledge [16:30:09] Hm interstying [16:30:29] Pretty sure TVtropes has a fork on FANDOM [16:30:35] They were at our predecessor [16:30:40] Neat [16:30:41] Not sure before them [16:30:46] It's a very old wiki [16:30:46] What happpened to it?@ [16:30:49] Oh [16:30:56] My wiki has been around for about 5 yearsd [16:31:07] Orain collapsed nearly 6 years ago [16:31:33] I was on FANDOM, thenWikiDot, then MWZip, then Miraheze [16:32:28] wow, Orain's fall was already 6 years ago, amazing. Time flies by fast... [16:34:05] September 2015 [16:40:47] What made Orain diffant|? [16:41:11] Different people in charge [16:41:31] Like Miraheze but diffant staff then and diffant colors/logos [16:42:51] Some shared staff [16:43:00] But different management [16:43:35] I do rmber MWzip and the admin "WinterRain" [16:53:24] I've always wondered about what really happened to Orain but at this point, it's not even relevant [16:53:49] They got hacked [16:54:15] Then the owner disappeared [18:21:27] assuming Ubuntu wins on the font, what do you think about this? @Doug @Reception123 (Away) [18:21:28] https://cdn.discordapp.com/attachments/435711390544560128/849351957784166441/unknown.png [18:44:50] Hello imahero! If you have any questions, feel free to ask and someone should answer soon. [18:48:51] i already asked a question in the discord [18:48:56] is it ok to repeat here? [18:49:05] imahero: sure [18:49:14] but try to ask here next time if you want it in IRC [18:49:51] I'm trying to use a bot using the bot password I created on my site. But I'm getting a captcha error. Am I not allowed to use a bot on my own wiki? [18:50:05] {'result': 'Aborted', 'reason': 'Cannot log in when using MediaWiki\\Session\\BotPasswordSessionProvider sessions.'} [18:50:33] my user config.py: [18:50:34] # -*- coding: utf-8 -*- [18:50:34] family_files['miraheze'] = 'https://heroesofmightandmagic.miraheze.org/w/api.php' [18:50:35] family = 'miraheze' [18:50:35] usernames['miraheze']['miraheze'] = 'Imahero' [18:50:36] console_encoding = 'utf-8' [18:50:36] password_file = "user-password.py" [18:50:52] I'm using pywikibot [18:50:52] maybe there are some modifications I need to make? [18:51:51] imahero: are you using your normal password or a bot password? [18:51:55] captcha error? [18:52:05] bot password [18:52:24] my user-password.py file: [18:52:31] ("miraheze", "Imahero", BotPassword('imabot', 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz')) [18:53:08] imahero: your username will be imahero@somethingyouset [18:53:31] yep Imahero@imabot [18:53:46] i've already used this exact code on another wiki to log in and it worked [18:54:10] so i think something is making my bot try to fill out a captcha [18:54:18] maybe a permission i need to set or something? [18:54:40] That doesn't sound like a captcha error code [18:55:12] Python39\lib\site-packages\pywikibot\data\api.py", line 2938, in login_to_site [18:55:12] raise CaptchaError('Captcha encountered which cannot be ' [18:55:13] pywikibot.exceptions.CaptchaError: Captcha encountered which cannot be handled: [18:55:13] {'result': 'Aborted', 'reason': 'Cannot log in when using MediaWiki\\Session\\BotPasswordSessionProvider sessions.'} [18:55:14] CRITICAL: Exiting due to uncaught exception [18:56:00] Is it registered in your wiki? [18:56:09] Can you please share the full trace imahero [18:56:15] Maybe give it the skip captcha right if it is [18:56:17] And what code you're using [18:56:40] like i responded on discrod, googling the problem, that may happen if you are already looged in and try to log in again. [18:58:44] full log: [18:58:45] https://pastebin.com/DdgbeKr2 [18:59:35] imahero: does the account you're trying to use have admin/bot rights? [19:00:02] i don't know its just my own account on my new wiki i just had created [19:00:11] alright so it should have admin [19:00:36] Logged in user is: None [19:00:41] so not already logged in [19:01:03] i think i registered the bot before i created the new wiki [19:01:12] just using the meta i guess [19:01:26] i guess i could try a new one [19:02:11] imahero: have you changed the solve_captcha setting in your pywikibot config [19:02:36] i did look through settings but i don't remember seeing that [19:02:48] oh wiat [19:02:55] in "my" config [19:03:01] how do i do that? [19:03:07] imahero: it should default to True according to the docs but can you check it's set [19:03:27] Same place as any other config [19:03:50] i just made a project folder and created new files called configs [19:03:50] you should have a user-config.py file i belive [19:04:04] can i just override whatever that value is there? [19:04:31] It should be True [19:04:37] Note the capital T [19:05:10] i added [19:05:11] solve_captcha = True [19:05:14] but it gave the same error [19:07:37] Can you tell me your wiki so I can try to help? [19:07:41] and someone asked the code i'm running: [19:07:42] import pywikibot [19:07:43] site = pywikibot.Site() [19:07:44] site.login() [19:07:44] print('Logged in user is:', site.user()) [19:07:45] Either here or in DMs [19:07:51] heroesofmightandmagic [19:07:52] if not thats fine [19:07:57] I found a task [19:08:11] But I'm really not sure why you're ending up where you are [19:08:12] https://heroesofmightandmagic.miraheze.org [19:08:24] .mhca imahero [19:08:24] https://meta.miraheze.org/wiki/Special:CentralAuth/imahero [19:09:31] I suggest you ask #pywikibot [19:10:17] Because how you're login is being throttled on an account with skipcaptcha and noratelimit means it's going seriously wrong [19:10:29] Yeah [19:10:57] I'm not really the python genius so /shrug [19:12:50] i doubt the bot UserRight won't help [19:13:22] i just deleted my old bot and created a new one and it worked idk what was wrong with the old one, exactly the same code [19:13:55] i created the old bot before my wiki even existed [19:14:01] not sure if that was it or what [19:14:11] but it works now [19:14:14] i logged in [19:14:21] You probably were missing a grant then when you set it up [19:15:07] oh lol it only works once [19:15:13] i can't run that code twice [19:15:29] there must be a better way than deleting and recreating my bot over and over [19:15:35] halp pls [19:16:08] this is literally all it does: [19:16:08] import pywikibot [19:16:09] site = pywikibot.Site() [19:16:09] site.login() [19:16:10] print('Logged in user is:', site.user()) [19:24:03] i put my full problem in one paste: [19:24:04] https://pastebin.com/iAHD2neC [19:26:15] just to verify, it's on your account, right? [19:26:43] oh nvm [19:27:36] Cannot log in when using MediaWiki\\Session\\BotPasswordSessionProvider sessions. [19:31:14] i can log in just once, i guess i might need to be saving the session details and reuse them [19:31:53] did you try to run a logout? or you just get an error that you are not logged it? [19:32:47] i just commented out the login line and it told me i wasn't even logged in i'm guessing i need to save the session [19:33:10] yeah, i guess [19:34:01] you are probably missing the session and so the bot is looged in already with the previous session and you cant log in again. [19:34:40] i agree that is problematic [19:35:09] ok yeah so i guess ill do some more reading of the pywikidocs [20:58:16] What's [[]] and why do I keep seeing it in my imports [20:58:16] https://meta.miraheze.org/wiki/%3ctvar%3e [21:03:23] Bukkit: translation variable [21:03:39] ??? [21:03:54] does it work with the translation extension? [21:04:20] It's used on translatable pages for content within tags that you don't want translating [21:04:22] like something from it [21:04:24] Yes [21:25:35] hmmm i switched over to golang and the mwclient im using doesn't seem to have the same limitations [21:25:41] goodbye python [21:25:54] https://github.com/cgt/go-mwclient