[01:26:44] Operator873: The bot is going quite well thank you for asking [01:27:27] Operator873: How is yours? [01:31:20] Oh mine is the same it's been for the last year or so. No more dev right now [01:34:10] [[User:Examknow]] [01:34:10] http://enwp.org/User:Examknow [01:34:12] [ User:Examknow - Wikipedia ] - enwp.org [01:34:26] @linkie-off [01:34:26] Links will not be automatically translated in this channel now [01:34:35] [[User:Examknow]] [01:34:41] dammit [01:39:02] Watching you work on it makes me really wish I had time to come thru what I wrote for Bot873. I didn't write awesome scripts, but they were good enough. Maybe tomorrow while I'm at work I can find those files. [01:42:25] Operator873: I was talking about CabalBot [01:43:06] Oh right. But I had a sopel bot called Bot873 [01:43:30] It was approved for on wiki edits on meta a while back, but never really took off [01:43:36] ah [01:43:42] I have a CVT module [01:47:47] it is for miraheze [01:49:50] what is CVT module do? [01:53:09] GitHub [7examknow/Exambot-Source] examknow pushed 1 commits into branch master: https://github.com/examknow/Exambot-Source/compare/de7ac7b1c921...b27b6dcddf5c [01:53:09] GitHub [7examknow/Exambot-Source] commit by examknow (Examknow) https://github.com/examknow/Exambot-Source/commit/b27b6dcddf5c47e7a2bf68b5542ccd7e38842b51 fixed config [01:53:10] [ Comparing de7ac7b1c921...b27b6dcddf5c · examknow/Exambot-Source · GitHub ] - github.com [02:22:48] .add #ExamBot-testing [02:25:18] GitHub [7examknow/Exambot-Source] examknow pushed 1 commits into branch master: https://github.com/examknow/Exambot-Source/compare/b27b6dcddf5c...b0bd6b8b3845 [02:25:18] GitHub [7examknow/Exambot-Source] commit by examknow (Examknow) https://github.com/examknow/Exambot-Source/commit/b0bd6b8b3845c754ff8fb7d740a667dc9e4b8506 fixing conflicts [02:25:19] [ Comparing b27b6dcddf5c...b0bd6b8b3845 · examknow/Exambot-Source · GitHub ] - github.com [02:29:59] Examknow, you working with regex to detect the {{ or [[? [02:30:13] ... err.... better question, is that repo what it's in? [02:30:46] do you mean @module.rule ? [02:31:26] yep [02:32:13] like maybe something like @module.rule('\{\{.*\}\}') [02:32:44] that could get a good trigger [02:32:46] maybe [02:32:48] that might work [02:33:14] must have {{ --then anything with the close at the end-- }} [02:33:39] then that should become your trigger.group(1) or (2) I can't remember [02:35:50] 2 [02:35:52] Once you find the trigger.group, you can use Python str.replace("{{","") [02:36:08] to strip of curly braces [02:36:18] sounds right [02:36:31] then dump it with bot.say('https://enwp.org/' + trigger.group(2)) [02:36:32] [ Wikipedia, the free encyclopedia ] - enwp.org [02:36:53] yup [02:37:07] oooh! Don't forget str.replace(" ","_") [02:37:46] GitHub [7examknow/Exambot-Source] examknow pushed 1 commits into branch master: https://github.com/examknow/Exambot-Source/compare/b0bd6b8b3845...9a70cc70a5c9 [02:37:46] GitHub [7examknow/Exambot-Source] commit by examknow (Examknow) https://github.com/examknow/Exambot-Source/commit/9a70cc70a5c9e377906d995177ab8635c007272e maintenance [02:37:46] [ Comparing b0bd6b8b3845...9a70cc70a5c9 · examknow/Exambot-Source · GitHub ] - github.com [02:40:34] Operator873: Can you open a PR for it in ExamBot? [02:41:50] yyeeeaaahhhhh I don't know much about Github. I'm still learning the repo thing. haha [02:41:58] I do hard mode old school still [02:42:13] tell me what to do, I'll do it [02:42:44] ok [02:42:47] you ready? [02:42:51] get it [02:43:02] gimme [02:43:05] shoot [02:43:11] * Examknow shooting [02:43:13] fuego [02:43:47] bereites Zielfeuer [02:43:54] go to https://github.com/examknow/ExamBot-Source [02:44:09] 사격 [02:44:12] oh sorry [02:44:13] going [02:44:26] mmk [02:44:36] r u there? [02:44:41] yerp [02:44:55] pull at the top/ [02:44:55] ok there should be a little button that says fork [02:44:59] oh [02:45:25] click it [02:45:27] got it [02:45:43] ok [02:45:56] did it fork? [02:46:21] yep [02:46:45] ok so now navigate to sopel/modules [02:46:48] So Operator873/Exambot-Source is mine to dork around with without messing up your source right? [02:46:55] yup [02:47:14] upload your module file in the sopel/modules directory [02:47:14] which model was autolink running from? [02:47:34] lol I don't have one [02:47:41] but I'll see if I can write it [02:47:52] copy and paste your code into a new module called linkie.py [02:47:59] disclaimer... it has /literally/ been more than a year since I wrote for Sopel [02:48:09] ok that is why I will check [02:48:12] i'm probably rusty [02:48:19] mmmk I'll see what I can get up [02:48:24] .devoice wm-bot5 [02:48:40] .voice Operator873 [02:49:14] Operator873: let me know when you are done [02:49:17] mmk [02:51:33] Examknow, is your Sopel running Py2 or Py3? [02:51:44] hold on [02:52:39] Operator873: it should not matter [02:53:26] Operator873: python 2.7.13 [02:53:27] ok. cool [02:53:48] the python procedures within the module will matter [02:54:36] ah [02:56:59] you have access to your shell? SSH or otherwise? [02:57:03] yes [02:57:12] what are you running? Ubuntu? [02:57:15] CentOS? [02:57:37] please dear god not windwos [02:57:51] please don't say windows... please don't say windows [02:57:51] debian [02:57:59] ok debian is good [02:58:03] windows servers suck for what they cost [02:58:04] python --version [02:58:09] python3 --version [02:58:22] <---- Major Linux Nerd [02:58:33] * Examknow is the same way [02:58:43] Operator873: Python 2.7.13 [02:58:53] no python3 response? [02:59:56] Python 3.5.3 [03:00:15] eh [03:00:27] I'll write it one way and if it breaks, I'll write it the other [03:00:37] ok [03:06:03] Operator873: Is it done yet? [03:06:15] uh... no [03:06:32] just a minutes [03:08:48] ok I got something that should tell me if it's catching the [[link]] [03:08:58] it doesn't do anything else [03:09:02] yet [03:10:32] Examknow, I've added it to my fork [03:10:42] * Examknow is checking [03:11:37] how do I push from mine to yours? [03:12:17] I will do it for you [03:12:33] mmk [03:13:14] I tend to build incrementally so... like what you'll find in linkie.py is very basic... basically enough to tell me if the bot catches it. from there I build [03:13:26] If the module isn't super complex at first, then it's easier to troubleshoot [03:13:43] I don't see any str.replace s [03:13:59] right. see above [03:14:07] lets make sure it's picking out the [[link]] [03:14:23] and not: "this is some tallking and some other talking with a test [[link]] right there" [03:14:47] ok I will run it in #ExamBot-testing [03:14:56] I'll add some pseudo script comments [03:20:59] GitHub [7examknow/Exambot-Source] examknow pushed 1 commits into branch master: https://github.com/examknow/Exambot-Source/compare/9a70cc70a5c9...149f2c627bee [03:20:59] GitHub [7examknow/Exambot-Source] commit by examknow (examknow) https://github.com/examknow/Exambot-Source/commit/149f2c627beea505e84ee5eb24af79d1f88adc66 Create linkie.py [03:21:00] [ Comparing 9a70cc70a5c9...149f2c627bee · examknow/Exambot-Source · GitHub ] - github.com [03:21:34] Examknow, check mine again [03:21:49] if trigger.group(2) captures the [[link]] then we're ready to go [04:20:26] Unexpected error (global name 'user' is not defined) from Zppix at 2019-12-06 04:20:26.627456. Message was: Zppix [16:03:40] !admin [16:03:41] Examknow: Welcome Examknow an administrator will be with you shortly. Thank you for choosing XtremeBNC. [16:03:41] Examknow: Please note that if you are outside of operating hours, we may not see your request until later. Please bear with us [16:03:42] Unexpected error (global name 'admins' is not defined) from Examknow at 2019-12-06 16:03:41.049834. Message was: !admin