[00:18:43] Isn’t XML not guaranteed to be parsable by regular expressions? [00:19:03] One of those “it works in most cases but the language definition doesn’t formally make it guaranteed” situations [00:43:03] my head is frazzled with this oauth shite [01:32:47] There should be a "Wiki Ideas" page where users can suggest wiki ideas that they think are good and other users can vote on them [01:34:06] cc: @agentisai https://meta.miraheze.org/wiki/Special:RequestWikiQueue/41419 [01:34:15] wiki focused on him! [01:34:35] It's CN to an extent [01:34:57] anyone with such ideas could just go straight to requesting tbh, and yes, cn pretty much covers when people want other mira opinions for feedback [01:35:16] There should be a raidarr wiki next [01:35:25] it's not ready yet [01:35:26] fr [01:35:31] :EYES: [01:35:37] oops [01:35:58] for some reason I keep feeling the urge however to note I cut it down to 4 groups [01:36:16] A Mirahezen wiki would be pretty funny [01:36:29] Dedicated to documenting community members [01:36:33] Dibs on crat! [01:36:35] radar wiki for sure [01:36:49] hooboi [01:37:02] I can just see what will happen when the right people get mixed there [01:37:20] Do tell [01:37:45] User reception wikis all over again [01:37:47] a:waaa: [01:37:50] 'raidarr is a meanie poo poo face :(' 30 revisions in 2 hours [01:38:10] I'd generally edit in favor of that tbh [01:38:22] Noooo [01:38:24] but then it would be more than just me and that's where it's less fun [01:38:56] and all you can say about certain people is how they made a mess of things which isn't a pleasant note to go on [01:39:13] or then you got a page with super pro agent writing and some dude comes in like 'he closed my wiki' and that becomes an edit war [01:39:14] etc [01:40:06] Lmao [01:40:13] "he closed my wiki" sounds like something someone would've put in a reception wiki article about Agent if he were a Steward back when they were around [01:42:40] Lmaooo [01:42:50] already got a handful of people after me for getting them demoted as you well know [01:43:09] but considering I got another qp leader dethroned I'm surprised I don't have more [01:43:25] This is the real reason I was never active on wiki lmao [01:43:28] The mobs [01:43:31] (Jk) [01:43:43] send em to me [01:43:55] I’ll make my user page a redirect [01:44:11] submit all complaints to the raidarr department and may the lord have mercy on your soul [03:55:55] <.labster, replying to lichmaster98> In Perl or Raku regular expressions are Turing complete so yes XML can be parsed that way, but obviously you're probably not doing it right... but it works in some cases so sure, why not? [09:23:02] obligatory so post regarding ML regex parsing: https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags [14:48:45] [1/3] oh [14:48:45] [2/3] 4:00 a.m. 🙃 [14:48:45] [3/3] https://cdn.discordapp.com/attachments/615786602454581249/1210961519903252540/image.png?ex=65ec76cc&is=65da01cc&hm=fa9c92b3a9ea26f601a349851e293f4c9b189e1821730d4e5728710efd67b439& [14:50:16] Last time it was 2 am lol [15:13:25] So recognisable 😄 [16:56:01] [1/2] I made another Discord account a few months ago but was too busy to check anything on Miraheze, I don't know if it'll stay unbanned bur I admitted to evading the disable a few times and then reported myself with alts and nothing happened so it might be good [16:56:01] [2/2] If I'm not allowed to rejoin this server that's understandable though [17:52:12] [1/2] QR code kanji [17:52:13] [2/2] 鬱 [19:59:15] Why was John F banned from Wikimedia? [20:00:19] That's a request for the WMF Office [20:00:30] As most of it is NDA-restricted [20:22:55] It's never parseable but if you just want to catch "any HTML tags plus a few mystery strings" it's good [20:24:30] It's an open secret [20:24:55] Read the tech blogs from the time [21:47:23] @pixldev pls [21:48:02] hm? [21:48:05] o [21:48:09] token length? [21:48:20] have you managed to get the data about the user you've authed? [21:48:31] funny you say that [21:48:44] how are you doing it? I tried a GET to Special:OAuth/identify, but it doesn't like that even though the example in the docs say that. [21:49:33] https://cdn.discordapp.com/attachments/615786602454581249/1211067417434923098/X0TGi0M.png?ex=65ecd96c&is=65da646c&hm=dbba9bb6c763eacf7a986a61d5f17a05009c0c05a2d8bfbd05a4139d14d4207b& [21:49:46] I'm using a library [21:49:56] a wrapper [21:50:15] wtf [21:50:17] grrrr [21:50:28] the python code for it https://pythonhosted.org/mwoauth/_modules/mwoauth/functions.html#identify [21:50:39] i promise im not trying to bully you on purpose [21:51:00] actually seems pretty simple [21:51:22] oh [21:51:22] yeah but I'm not using a wrapper 😦 [21:51:24] its a POST [21:51:31] not GET [21:51:38] [1/5] ```py [21:51:39] [2/5] r = requests.post(url=mw_uri, [21:51:39] [3/5] params={'title': "Special:OAuth/identify"}, [21:51:39] [4/5] auth=auth, [21:51:40] [5/5] headers={'User-Agent': user_agent})``` [21:51:43] fair! [21:56:55] what's wiki_id [21:57:14] Global ID [21:57:16] .. [21:57:25] yeah I see the confusion [21:57:30] Your user_id is not 20 [21:57:35] I can't assure you of that [21:57:46] oh may have mistyped [21:57:52] wait it might be [21:57:55] this is mirabeta [21:58:16] wait lemme see [21:58:20] i may be doomb [21:58:54] hm yeah more then 20 users on MB [21:59:30] huh [21:59:34] okay now im confused [21:59:47] I am directly passing the `sub` key [22:00:03] and cording to MW.org docs that is the global id [22:00:13] Oh on beta [22:00:48] if stuff like abuse filter and script accounts dont have central id may make snese [22:01:34] you can go to https://meta.mirabeta.org/w/api.php?action=query&meta=userinfo&uiprop=*&formatversion=2 and confirm your IDs [22:02:01] I have CA ID 18 and local ID 23 on mirabeta btw [22:02:08] @pixldev ye it's correct [22:02:10] [1/3] ``` "centralids": { [22:02:10] [2/3] "CentralAuth": 20, [22:02:10] [3/3] "local": 27``` [22:02:13] yippe [22:02:23] That's confusing though [22:02:33] I wouldn't expect local to be higher than CentralAuth [22:02:36] That's a logic error [22:02:49] How do we have less global users than local ones [22:02:50] It may be stuff like the Abuse Filter account [22:02:57] and Maintaince script [22:03:12] Vanished users would still have [22:03:15] Maybe [22:03:24] Vanished users still had a global ID [22:03:24] [1/26] full list ``` Abuse filter talk contribs‏‎ (administrator) (Created on 24 May 2023 at 13:38) [22:03:25] [2/26] AgentTest talk contribs‏‎ (crate, steward, administrator) (Created on 25 April 2023 at 05:47) (blocked) [22:03:25] [3/26] BlueMoon talk contribs‏‎ (crate, administrator) (Created on 9 February 2024 at 19:28) [22:03:25] [4/26] BrandonWMTest talk contribs (Created on 26 April 2023 at 04:14) [22:03:26] [5/26] BrandonWMTest 2 talk contribs (Created on 26 May 2023 at 03:21) [22:03:26] [6/26] DmehusTest talk contribs (Created on 22 May 2023 at 17:01) [22:03:26] [7/26] Flow talk page manager talk contribs‏‎ (bot, Structured Discussions bot) (Created on 29 November 2023 at 03:45) [22:03:27] [8/26] FrozenPlumTest talk contribs (Created on 26 April 2023 at 04:32) [22:03:27] [9/26] FuzzyBot talk contribs (Created on 27 April 2023 at 17:54) [22:03:27] [10/26] ImportDump Extension talk contribs (Created on 28 December 2023 at 21:34) [22:03:28] [11/26] ImportDump Status Update talk contribs (Created on 22 February 2024 at 00:22) [22:03:28] [12/26] MacFan4000 talk contribs‏‎ (crate, steward, administrator) (Created on 26 April 2023 at 00:42) [22:03:29] [13/26] MacFanTest talk contribs (Created on 17 February 2024 at 17:37) [22:03:29] [14/26] Maintenance script talk contribs (Created on 9 February 2024 at 19:31) [22:03:30] [15/26] MediaWiki default talk contribs‏‎ (bot) (Created on 15 June 2022 at 00:14) [22:03:30] [16/26] MirahezeGDPR 4ab9a01fe4c1ac086ba39ef5442f5a2a talk contribs (Created on 26 April 2023 at 04:06) [22:03:31] [17/26] OATest talk contribs‏‎ (crate, steward, administrator) (Created on 22 December 2023 at 12:15) [22:03:31] [18/26] Paladox talk contribs (Created on 2 July 2023 at 14:51) [22:03:32] [19/26] PixDeVl talk contribs‏‎ (autopatrolled, confirmed user) (Created on 22 February 2024 at 17:42) [22:03:32] [20/26] RaidarrBreaksThings talk contribs‏‎ (crate, steward, administrator) (Created on 3 May 2023 at 20:57) [22:03:33] [21/26] Reception321 talk contribs‏‎ (crate, steward, administrator) (Created on 26 April 2023 at 04:32) [22:03:33] [22/26] TestAracham talk contribs (Created on 25 May 2023 at 18:02) [22:03:34] [23/26] TestRhinosF1 talk contribs (Created on 2 November 2023 at 18:10) [22:03:34] [24/26] UgochimobiTest talk contribs (Created on 27 May 2023 at 18:07) [22:03:35] [25/26] Universal Omega talk contribs‏‎ (crate, steward, administrator) (Created on 5 October 2022 at 23:40) [22:03:35] [26/26] Vanished user 0cacb874798a535b159e895f378eef9a talk contribs (Created on 15 June 2022 at 00:14)``` [22:03:36] We don't reuse global IDs [22:03:40] wise policy lol [22:03:48] Well it's not a policy [22:03:55] It's MariaDB [22:03:57] look mom, I'm on Discord (3rd entry)! [22:04:28] Both ids are just PRIMARY KEY INT AUTO INCREMENT [22:05:05] ye [22:05:06] hm [22:05:22] I count six accounts that would make sense to maybe not have a central auth id [22:06:10] whatever [22:07:00] wondering how I should handle reauths, drop the old row or just add a new one and use that, ordering by ID [22:07:08] prob latr [22:11:49] [1/2] `"error":"mwoauthdatastore-access-token-not-found","message":"No approved grant was found for that authorization token."` [22:11:49] [2/2] cries in french [22:26:16] [1/4] hehe [22:26:16] [2/4] ```json [22:26:16] [3/4] {"sub":248,"username":"Original Authority","editcount":332,"confirmed_email":true,"blocked":false,"registered":"20220628113022","groups":["bureaucrat","sysop","*","user","autoconfirmed"],"rights":[],"grants":["mwoauth-authonly"]} [22:26:17] [4/4] ``` [22:26:22] you're french? [22:26:31] merci [22:26:40] cris in french hater [22:26:44] (im joking obvi) [22:26:49] yall have the best food [22:26:52] i'm not french really [22:26:58] unlike some englands i could mention [22:27:10] plain RUDE! [22:27:15] https://tenor.com/uWT6OYg5dz6.gif [22:27:23] v-v [22:28:23] robot domination! [22:28:50] smh [22:29:07] someone say robot domination [22:29:20] will an invasion of battlemechs suffice [22:31:19] speaking of [22:31:22] did anyone ever play that game [22:31:25] mechwarrior [22:31:44] which entry [22:31:49] i'm not sure [22:31:52] believe it or not I've largely held off on 5 [22:31:55] i remember playing it when I was maybe 11 or 12 [22:32:03] back in the days when joysticks were still a thing [22:32:08] you might be referring to ogs then [22:32:15] yeah, I've not played it in years [22:32:15] 2, 3 or 4, probably 2 or 4 [22:32:37] i hazily remember it [22:32:41] it was a very annoying game [22:32:53] probably because I was 12 and had no idea what I was doing [22:33:04] depending on how I'm leaning 2 [22:33:21] 2 being from the 90s and 4 the early 2000s [22:33:41] hmm idk, it was my dads so i'm not sure [22:33:44] 3 was an interesting one, could be it too but it wasn't as high profile I think [22:33:54] also OA uh you any good at making web pages that dont look like garbage maybe? [22:34:04] meh ish [22:34:23] [1/4] ```html [22:34:23] [2/4] [22:34:24] [3/4] /html [22:34:24] [4/4] ``` [22:34:24] there you go [22:34:37] was thinking of after auth redirecting to a funny little page with miraheze colors [22:34:46] maybe a :Partyheze: [22:35:13] very easy trick is to use Bootstrap [22:35:21] yeah my callback page is gonna be groovy [22:35:26] ew bootstrap in 2024 [22:35:27] they have a lot of templates you can drop immediately [22:35:38] i wanna find the source of the image we use as a server banner [22:35:45] https://cdn.discordapp.com/attachments/615786602454581249/1211079044641194035/N5J7lPI.png?ex=65ece441&is=65da6f41&hm=97e87db4d04a18a211af249754ad661caf9c0992871ac29dd327c8adf1676168& [22:35:49] iirc the old mh mainpage was bootstrap [22:35:52] if that could scale right would look good [22:35:57] half the time I still play with sheer html [22:36:00] yeah, all Bootstrap pages may look the same, but given the choice between that and unstyled... [22:36:13] probably the same image used for cosmos' background on meta so it will be in ManageWiki under the cosmos setting [22:36:36] wait [22:36:50] huh [22:37:33] meta uses that image for the background of cosmos [22:37:36] go straight for the year 2000 look [22:37:56] https://commons.miraheze.org/wiki/File:Miraheze_Banner.png [22:39:14] ive made some decent error pages at least [22:39:24] https://media.discordapp.net/attachments/783136109206437918/1183469933057814549/image.gif?ex=65887343&is=6575fe43&hm=f5ea0c64de85086b0fac61b4c9f9aeabc8b9b62764395d738ba9e08c02fad125& wel [22:39:30] up for debate [22:41:10] a friend made https://stoneworksprime.tech/ as a placeholder til he works on the porject more [22:41:14] best error code [22:41:46] thanks a lot Stoney [22:42:16] so real [22:43:13] polly put the kettle on [22:46:16] im more of a hot chocolate guy myself [22:46:24] certified coffee hater [22:55:54] whats your plan [22:55:57] so many reasons to :BanHammerMH: you now [22:56:16] admin aboose [22:56:58] I'm gonna have a section where people can change which wiki the bot uses for the server, and where people can make the bot 'forget' them so it no longer remembers them as authenticated. [22:57:12] unauth? [22:57:39] im focusing on an auth bot for now but will prob add some more wiki stuff to it [22:58:26] i partly hate that we making the exact same thing ngl i love making practical new things and having two bots with the same shtick is aaaa [22:58:27] :agony: [22:58:49] Is that you who uploaded that? [22:58:52] nope [22:59:08] @lakelimbo did i think [22:59:19] Wondered how he was able to upload it with a cc-by-nc [22:59:38] It's incompatible with Commons [23:00:37] idk [23:02:33] I don't know if I can personally change the license, because while I made it, it was just for this Banner here on MH when there are over 5 server boosts [23:03:01] looks very ballin [23:03:18] (whatever the staff decides) [23:03:34] You can, as it is less restrictive. You can't make it more restrictive. [23:03:50] So cc-by-sa would be fine [23:04:12] cc-by-nc-nd would not [23:05:17] By definition are licenses like "Only for this or that website" prohibited n commons [23:05:17] yes, some people might want the bot to forget who they are [23:05:30] fair [23:05:37] not hard could prob add rn [23:05:44] but i need to catch up history [23:05:45] raaa [23:05:49] say they changed their account, if they auth again and the bot stores their account details say, @originalauthority belongs to the account "Original Authority" on miraheze [23:05:58] but then I want it to be "OATest" [23:06:05] the bot would need to forget who i am if you get me? [23:06:17] I guess it all depends if you are storing a correlation between usernames and accounts [23:06:22] or could just /auth again with a new account and override [23:06:34] that depends though [23:06:47] well yeah [23:07:02] depends on whats the primary key and whats UNIQUE [23:07:09] for example, with wiki-bot, if you auth on a discord server that is set to a wiki on fandom, that is stored in the database. if you auth on another discord that also has the wiki set to fandom, it automatically authenticates you because it knows your account on fandom [23:07:33] ah [23:07:40] ill prob just do like that ngl [23:07:54] copy cat! [23:07:54] jokes [23:07:58] i'm doing it like that too [23:08:03] wonder if either of these are gonna end up replacing nap here [23:08:13] idk [23:08:14] i mean [23:08:17] fun project to work on though [23:08:18] its a low bar [23:08:20] yeah [23:09:12] gotta love being bashed in the head by OAuth [23:09:31] turns out I was using the oauth 1 endpoint instead of the oauth2 one heh [23:09:39] ah [23:09:42] that would do ti! [23:09:47] mostly because the docs say an auth only token can't be used to get account information when it can [23:09:54] LIARS! [23:10:32] then go fix it! [23:11:37] im hoping we each find a niche for our bots so we not directly racing and I can do my important work in peace without my ego screaming to open pycharm [23:11:47] please lord above I need to work 😭 [23:11:56] I was up until 5am working on this [23:12:08] this is not fair 😭 [23:12:10] (mostly because i slept from 5pm - 12) [23:12:25] okay seek help anyways [23:12:41] https://tenor.com/blWEW.gif [23:12:53] and I still got it working faster smh [23:13:11] yeah but does yours link articles, or get centralauth details? [23:13:18] shush [23:13:22] those are side quests [23:13:42] you dont start building the house by selecting curtains [23:13:45] mine also supports fandom sooooooo [23:14:09] shush [23:14:27] let me feel justified in my work please [23:14:37] i do little enough coding wise to be useful here [23:14:42] let me have this [23:14:42] i'll give credit where credits due you did do it faster [23:14:43] please [23:16:25] tbf I did say speed shouldn't be considered a primary metric in this 'contest' [23:16:48] [1/2] Boy I wish the person I’m telephoning with in my support thread would be a little more responsive, I know my ass is impatient, but I don’t like having to wait a day plus bump my message to get an answer because I feel bad for taking so long with all of you guys time, sorry pixl (and the others in there) [23:16:49] [2/2] I didn’t want to post this directly IN my thread since it isn’t related to the support at all but I felt bad not at least saying something [23:23:54] @originalauthority commited my code btw https://github.com/pixDeVl/HiveAuthBot/commit/9b18f7f430518d16cc204b31e0c29703819e69e5 [23:25:03] Ahhhh my eyes [23:25:29] (Not the people IN the thread to be clear I’m talking about the person outside this server I’m passing responses to, I am not shit talking people directly in here 💀) [23:26:17] https://tenor.com/view/toothless-toothless-dragon-lizard-dance-dancing-gif-18147614732076936345 [23:26:42] Dirty code! [23:27:16] Can you remember where I should file a request for channels here on Discord? [23:27:43] I'm in high school, been coding seriously for less then 2 years, and have barely taken a formal class in programming in my life. What do you expect [23:28:08] pleading at Killa's doorstep [23:28:13] or any admin [23:28:26] Heh im joking [23:28:32] Its more python than i know [23:28:58] eh, and gardas more PHP then I know [23:29:29] next time we both set our sights on a project lets do it in a collaboritive way instead of competitive mmm kay? [23:29:31] lmao [23:33:54] btw how da fuc are you planning on testing the OAuth flow [23:35:06] Yes heh [23:35:15] Wdym? [23:35:35] Like tests? Or just see if its working? [23:35:56] tests tests [23:36:03] the one that i lost 10 points over [23:37:36] [1/2] Well the way mine currently works is that someone initiates the oauth, and then the bot starts listening to the database for an entry with their user id, and once someone approved the oauth flow it inserts their key into the database, which the bot will pick up on and then its approved if it finds it. [23:37:36] [2/2] So ill probablt just have the test insert a fake user id and oauth token into the database and see if it picks up on it [23:37:52] Because i couldn't find a way to notify the bot that the oauth flow has been authorised by the user [23:38:12] hmmmmmm [23:38:26] So i just select from the database every 5 seconds for 30 seconds to see if the key is there. [23:39:19] I tried to see how wikibot does it but the code is not very documented. [23:39:53] could try asking the dev [23:40:11] Markus is in this discord I think [23:46:39] [1/2] Why hasn't anyone claimed "central.miraheze.org"? 😄 [23:46:39] [2/2] Just wondering [23:47:01] would need a valid wiki that has a need for that domain [23:49:57] I'm trynna generate an ai octopus for my bots avatar but its giving me too lifelike ones 😭😭 [23:58:57] [1/2] i got chu fam :EpicFaceMH: [23:58:57] [2/2] https://cdn.discordapp.com/attachments/615786602454581249/1211099982921334944/0NIy9nM.png?ex=65ecf7c1&is=65da82c1&hm=78e1f5d200031248f2f24ac8b25753c43097e19c4cfbda6e102be60e0c96aea7& [23:59:17] What is that on his forhead 😭😭 [23:59:21] grada [23:59:25] Bro [23:59:28] Its garda [23:59:34] o [23:59:42] Im gonna use that actually [23:59:48] Can you relinquish copyright!!