<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[01:54:32] <Forecaster> I'll just add an sql command so I can execute queries on the database :P
L2[01:55:35] <Forecaster> I also want to enhance them so you could do {js}some.js.code("brrrl"){/js} and then have non-js stuff afterwards, and the same with lua
L3[08:38:08] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L4[08:38:19] <Forecaster> ?bugs
L5[08:38:19] <ForeBot> Forecaster: 35 little bugs on the wall. Take one down, patch it around. 153 little bugs on the wall.
L6[08:38:34] <Forecaster> oh hey look, it's working
L7[08:43:27] <Michiyo> yay
L8[08:43:46] <Forecaster> now I'm going to try to break it again
L9[08:43:56] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) ()
L10[08:44:39] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L11[08:44:57] <Forecaster> also Michiyo for the database move, do you want it to be able to fall back to SQLite, or should we drop it entirely?
L12[08:45:08] <Forecaster> ?bugs
L13[08:45:09] <ForeBot> Forecaster: 181 little bugs on the wall. Take one down, patch it around. 161 little bugs on the wall.
L14[08:45:13] <Forecaster> ?test
L15[08:45:15] <ForeBot> Forecaster: Success
L16[08:46:48] <Michiyo> a fall back would likely be a good idea, just a straight up config option for it
L17[08:46:58] <Forecaster> alrighty
L18[08:48:13] <Forecaster> my plan is to build a generic object layer between the bot and the database, to avoid having to sql queries directly in the hooks
L19[08:48:31] <Forecaster> then I can just have that be able to generate both mysql and sqlite queries depending on the setting
L20[08:53:20] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) ()
L21[08:54:13] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L22[08:54:22] <Forecaster> ?test
L23[08:54:23] <ForeBot> Forecaster: Success
L24[08:54:28] <Forecaster> ?bugs
L25[08:54:30] <ForeBot> Forecaster: 160 little bugs on the wall. Take one down, patch it around. 136 little bugs on the wall.
L26[08:54:55] <Forecaster> ?command add [js]Math.floor(1.9)
L27[08:55:00] <Forecaster> oh wait
L28[08:55:11] <Forecaster> ?command add doom [js]Math.floor(1.9)
L29[08:55:16] <Forecaster> err
L30[08:55:23] <Forecaster> ?addcommand doom [js]Math.floor(1.9)
L31[08:55:24] <ForeBot> Forecaster: Command Added! Don't forget to set help text with addcommandhelp!
L32[08:55:30] <Forecaster> okay that's not working very well
L33[08:55:35] <Forecaster> ?doom
L34[08:55:36] <ForeBot> Forecaster: 1.0
L35[08:59:12] <Michiyo> Also I thought you could mix js/lua in a dyncmd
L36[08:59:25] <Michiyo> %command add langtest [js]Math.floor(1.9) [lua]math.floor(1.9)
L37[08:59:25] <MichiBot> Michiyo: Command Added! Don't forget to set help text with addcommandhelp!
L38[08:59:31] <Michiyo> %langtest
L39[08:59:33] <MichiBot> Michiyo: <eval>:1:21 Expected ; but found math | Math.floor(1.9) [lua]math.floor(1.9) | ^ in <eval> at line number 1 at column number 21
L40[08:59:42] <Michiyo> nope. ok
L41[08:59:49] <Forecaster> it currently uses startsWith to look for either tag
L42[09:00:31] <Michiyo> yeah... guess so
L43[09:00:33] <Michiyo> huh
L44[09:00:41] <Michiyo> I guess I dreamed I added that
L45[09:00:52] <Michiyo> or was it a nightmare :P
L46[09:01:14] <Forecaster> when I add the closing tags you will be able to do that though, to an extent
L47[09:01:39] <Forecaster> it needs to parse one and then the other, so if you add them in the wrong order errors will happen
L48[09:01:54] <Forecaster> not sure why you'd ever want to mix them though except for novelty purposes :P
L49[09:02:01] <Michiyo> lol
L50[09:02:30] <Forecaster> well... actually I could avoid that
L51[09:02:51] <Forecaster> by first finding all of them, and then sort them by length and parse them by shortest first
L52[09:03:45] <Forecaster> ie if you do "{lua}some lua code blah blah {js}this is javaween{/js} more lua code" (the end tags will be optional)
L53[09:04:13] <Forecaster> then in this case you'd need to parse the js tag first, and it will always be shorter than the full lua string
L54[09:33:48] <Forecaster> oh wait
L55[09:34:33] <Forecaster> it might cause issues if you try to use multiple tags
L56[09:34:42] <Forecaster> might as well just leave it as it is
L57[09:41:16] <Michiyo> Yeah, it's not even an oft used feature
L58[09:41:20] <Michiyo> The script tags that is
L59[10:09:15] <Forecaster> okay, time to commit this then
L60[10:09:24] <Michiyo> EXPLOSIONS!
L61[10:09:26] <Forecaster> I'll add an sql command later probably
L62[10:09:57] <Forecaster> well, it touches nearly every hook, so nah, I doubt anything will explode :P
L63[10:10:43] <Michiyo> s/I doubt anything/LITERALLY EVERYTHING/
L64[10:10:43] <MichiBot> <Forecaster> well, it touches nearly every hook, so nah, LITERALLY EVERYTHING will explode :P
L65[10:10:50] <Michiyo> lol
L66[10:11:26] <Forecaster> the commit message is "no whammies" so it's not allowed to explode
L67[10:12:20] <PCL-Jenkins> Starting build #863 for job LanteaBot (previous build: SUCCESS)
L68[10:12:57] <Forecaster> less than 137 from build 1000!
L69[10:13:16] <PCL-Jenkins> Project LanteaBot build #863: SUCCESS in 1 min 9 sec: https://ci.pc-logix.com/job/LanteaBot/863/
L70[10:13:17] <PCL-Jenkins> * martinek90: - Update replaceParamsInEffectString to keep parsing until the string stops changing or until timeout (10 iterations)
L71[10:13:17] <PCL-Jenkins> * martinek90: Fix typo
L72[10:13:18] <PCL-Jenkins> * martinek90: No whammies
L73[10:13:34] ⇦ Quits: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net) (Remote host closed the connection)
L74[10:14:02] ⇨ Joins: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net)
L75[10:14:02] Spock sets mode: +o on MichiBot
L76[10:18:59] <Forecaster> ?p
L77[10:20:18] <Forecaster> weird
L78[10:20:22] <Forecaster> %test
L79[10:20:23] <MichiBot> Forecaster: Success
L80[10:20:28] <Forecaster> %ping
L81[10:20:34] <Forecaster> %p
L82[10:22:13] <PCL-Jenkins> Starting build #864 for job LanteaBot (previous build: SUCCESS)
L83[10:22:15] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) ()
L84[10:22:25] <PCL-Jenkins> Project LanteaBot build #864: SUCCESS in 13 sec: https://ci.pc-logix.com/job/LanteaBot/864/
L85[10:22:25] <PCL-Jenkins> martinek90: Wups
L86[10:22:38] ⇦ Quits: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net) (Remote host closed the connection)
L87[10:22:59] ⇨ Joins: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net)
L88[10:22:59] Spock sets mode: +o on MichiBot
L89[10:27:06] <PCL-Jenkins> Starting build #865 for job LanteaBot (previous build: SUCCESS)
L90[10:27:17] <PCL-Jenkins> Project LanteaBot build #865: SUCCESS in 12 sec: https://ci.pc-logix.com/job/LanteaBot/865/
L91[10:27:18] <PCL-Jenkins> martinek90: Wups #2
L92[10:28:24] ⇦ Quits: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net) (Remote host closed the connection)
L93[10:28:43] ⇨ Joins: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net)
L94[10:28:44] Spock sets mode: +o on MichiBot
L95[10:30:33] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L96[10:30:51] <Forecaster> ?p
L97[10:32:47] <Forecaster> ?p
L98[10:35:14] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) (Client Quit)
L99[10:35:42] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L100[10:35:45] <Forecaster> ?p
L101[10:35:58] <Forecaster> err
L102[10:36:06] <Forecaster> I received it as a pm??
L103[10:36:19] <Michiyo> what?
L104[10:36:20] <Michiyo> ?p
L105[10:36:40] <Michiyo> I don't have any PMs from MichiBot, though I did get one from Forecaster
L106[10:36:40] <Forecaster> that's what Helper.getTarget does when it fails to get the source channel, it returns the username instead
L107[10:36:42] <Michiyo> err ForeBot
L108[10:36:54] <Michiyo> %p
L109[10:37:02] <Michiyo> no PMs from MichiBot
L110[10:37:27] <Forecaster> the ping onNotice used a very old way to get the target channel which was returning null, so I updated it to use Helper.getTarget
L111[10:37:37] <Forecaster> which is what the current ForeBot instance is doing
L112[10:37:52] <Forecaster> Michibot currently is just excepting in the onNotice
L113[10:38:13] <Forecaster> the question is why can't it get the channel
L114[10:38:35] <Forecaster> OH
L115[10:39:18] <Forecaster> because getTarget checks for GenericChannelUserEvent specifically, but onNotice uses NoticeEvent
L116[10:39:29] <Forecaster> so it effectively ignores it and defaults to the user
L117[10:40:10] <Michiyo> onNotice doesn't get a channel, the command is supposed to add the channel to the list, then fetch the channel from the list on the onNotice IIRC
L118[10:40:15] <Michiyo> I could be very wrong though
L119[10:40:24] <Forecaster> ah, hm
L120[10:40:37] <Forecaster> well the onNotice event has a getChannel method
L121[10:40:46] <Forecaster> dunno if it does anything though
L122[10:41:05] <Forecaster> well, it makes sense that the notice doesn't know what channel the command was called from actually
L123[10:41:12] <Michiyo> I remember having to have a hacky work around, because the ping notice is from the user, not the channel
L124[10:41:42] <Forecaster> String target = (String) users.get(event.getUser().getNick().toLowerCase()).get(0);
L125[10:42:26] <Forecaster> sendPing does ((ms) ? usersMSP : users).put(n.toLowerCase(), eventData);
L126[10:43:24] <Forecaster> I'ma go make food, then come back to this
L127[10:43:25] <Michiyo> yep, tjayt'
L128[10:43:27] <Michiyo> psihngsdhjerg
L129[10:43:35] <Forecaster> this is an odd thing to break suddenly
L130[10:43:45] <Michiyo> Yep, that's how it transports the channel between the command and the notice handler
L131[10:44:24] <Forecaster> oh
L132[10:44:26] <Forecaster> right
L133[10:44:51] <Forecaster> the thing that gets the target that sendPing uses was in the onCommand thingy
L134[10:45:07] <Forecaster> so the "target" variable just remains null
L135[10:45:17] <Forecaster> I'll just have it set when the command is called
L136[10:46:48] <Forecaster> or better yet, I can just pass it to sendPing as a parameter
L137[10:47:56] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) ()
L138[10:48:10] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L139[10:48:14] <Forecaster> I wonder if any other odd hook relied on this
L140[10:48:35] <Forecaster> generally commands just use the "target" parameter provided by onExecuteSuccess
L141[10:48:41] <Forecaster> ?p
L142[10:48:42] <ForeBot> Ping reply from Forecaster 0.36s
L143[10:48:46] <Forecaster> there we go
L144[10:48:47] <Michiyo> https://github.com/PC-Logix/LanteaBot/blob/73fb849baeea988fa443c89f9b388af320c84fdb/src/main/java/pcl/lc/irc/hooks/Ping.java
L145[10:48:52] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) (Client Quit)
L146[10:49:20] <Forecaster> https://github.com/PC-Logix/LanteaBot/blob/73fb849baeea988fa443c89f9b388af320c84fdb/src/main/java/pcl/lc/irc/hooks/Ping.java#L79
L147[10:49:27] <Forecaster> that was what was suddenly missing
L148[10:49:28] <Forecaster> :P
L149[10:49:37] <Michiyo> That's what I tried to link
L150[10:49:44] <Michiyo> lol
L151[10:49:56] <Forecaster> now fud
L152[10:49:59] <PCL-Jenkins> Starting build #866 for job LanteaBot (previous build: SUCCESS)
L153[10:50:03] <Michiyo> and yeah, that method was heavily used for a long time
L154[10:50:11] <PCL-Jenkins> Project LanteaBot build #866: SUCCESS in 12 sec: https://ci.pc-logix.com/job/LanteaBot/866/
L155[10:50:12] <PCL-Jenkins> martinek90: Feexed
L156[10:50:13] <Michiyo> no idea how many still use it
L157[10:50:36] ⇦ Quits: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net) (Remote host closed the connection)
L158[10:50:55] ⇨ Joins: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net)
L159[10:50:55] Spock sets mode: +o on MichiBot
L160[11:01:08] <Forecaster> well, now none are using it successfully :P
L161[11:01:32] <Michiyo> lolol
L162[11:02:43] <Michiyo> test
L163[11:02:48] <Michiyo> s/test/testing/
L164[11:02:48] <MichiBot> <Michiyo> testing
L165[11:02:51] <Michiyo> k that works
L166[11:03:01] <Michiyo> %lua print "Testring"
L167[11:03:02] <MichiBot> Testring
L168[11:03:03] <Michiyo> k
L169[11:12:16] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L170[11:28:04] <Forecaster> ?tonk
L171[11:28:06] <ForeBot> I'm sorry Forecaster, you were not able to beat Forecaster's record of 1 week, 1 day, 22 hours, 44 minutes and 18 seconds this time. 2 days, 22 hours, 31 minutes and 21 seconds were wasted! Missed by 6 days, 12 minutes and 57 seconds!
L172[11:28:28] <Forecaster> ?tonkreseteverything
L173[11:28:37] <Forecaster> hm
L174[11:28:40] <Forecaster> ?tonkreset
L175[11:28:41] <ForeBot> Tonk reset Forecaster, you are the record holder!
L176[11:30:10] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) ()
L177[11:30:42] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L178[11:30:51] <Forecaster> ?tonk
L179[11:30:51] <ForeBot> You got the first Tonk Forecaster, but this is only the beginning.
L180[11:31:46] <Forecaster> ?tonk
L181[11:32:04] <Forecaster> oh interesting
L182[11:32:09] <Forecaster> that sent a notice to me on irc
L183[11:32:21] <Michiyo> o_O
L184[11:32:43] <Michiyo> Oh, likely cause it strips out the ZWS and sends the notice.
L185[11:32:49] <Forecaster> yep
L186[11:33:02] <Michiyo> Wonder if we could implement Corded's PM system for notices :P
L187[11:33:06] <Michiyo> I think we do with tell
L188[11:33:06] <Forecaster> but it's not supposed to do that
L189[11:33:45] <Michiyo> https://github.com/PC-Logix/LanteaBot/blob/master/src/main/java/pcl/lc/irc/hooks/Tell.java#L122 lol, so hacky
L190[11:33:48] <Forecaster> it's supposed to set the bridge user in the command instance, then if that is set instead of the notice it should send a bridge pm instead
L191[11:34:04] <Forecaster> it used to work for some things before
L192[11:34:41] <Michiyo> I don't see anything in tonk for sending bridge pms currently, unless I'm overlooking it
L193[11:34:46] <Forecaster> ?tonkback 1h
L194[11:34:47] <Michiyo> Or, it was in another class
L195[11:34:54] <Forecaster> it's generic
L196[11:35:18] <Forecaster> it's in the notice sending method, in Helper maybe? I don't remember which class it's in
L197[11:36:15] <Forecaster> oh wait, it's handled by the timeout handler
L198[11:36:42] <Forecaster> ?tonkback
L199[11:36:46] <Forecaster> hm
L200[11:38:31] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) ()
L201[11:38:46] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L202[11:38:56] <Forecaster> while you don't need tryExecute in handleCommand anymore you do need to register each command now...
L203[11:39:07] <Forecaster> which apparently wasn't true for the reset one and tonkback :P
L204[11:39:17] <Forecaster> ?tonkback 1h
L205[11:39:17] <ForeBot> Last tonk has been rewound by 1 hour!
L206[11:39:29] <Forecaster> ?tonk
L207[11:39:31] <ForeBot> Dagnabbit! Forecaster! You beat your own previous record of <0 (By 1 hour, 8 minutes and 38 seconds)! I hope you're happy!
L208[11:39:32] <ForeBot> Forecaster's new record is 1 hour, 8 minutes and 38 seconds! No points gained for stealing from yourself. (Lost out on 0.00114)
L209[11:39:45] <Forecaster> okay, fixed the zws thing
L210[11:39:56] <Forecaster> might as well debug the notice thing too I guess
L211[11:48:25] <Forecaster> oh
L212[11:48:42] <Forecaster> said handler uses Helper.sendNotice which doesn't do anything like that...
L213[11:48:46] <Forecaster> that would explain it
L214[11:48:59] <Forecaster> but where did I put that stuff then...
L215[11:49:53] <Forecaster> oh right, the help command
L216[11:55:17] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) ()
L217[11:55:35] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L218[11:55:44] <Forecaster> ?tonk
L219[11:55:46] <ForeBot> I'm sorry Forecaster, you were not able to beat Forecaster's record of 1 hour, 8 minutes and 38 seconds this time. 16 minutes and 15 seconds were wasted! Missed by 52 minutes and 22 seconds!
L220[11:55:49] <Forecaster> ?tonk
L221[11:56:05] <Forecaster> okay that works now finally
L222[12:01:06] <Forecaster> ...why did I have a "<nick>: This is your message" in a notice...
L223[12:01:14] <Forecaster> only the target can see it D:<
L224[12:01:18] <Forecaster> why am I dumb
L225[12:04:26] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) ()
L226[12:04:41] <Michiyo> Corded PM support? lol
L227[12:04:43] ⇨ Joins: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com)
L228[12:04:58] <Forecaster> ?tonk
L229[12:04:59] <ForeBot> I'm sorry Forecaster, you were not able to beat Forecaster's record of 1 hour, 8 minutes and 38 seconds this time. 9 minutes and 13 seconds were wasted! Missed by 59 minutes and 24 seconds!
L230[12:05:05] <Forecaster> ?tonk
L231[12:05:13] <Forecaster> no I meant in the actual message
L232[12:05:33] <Forecaster> as in it would've sent "Forecaster: Forecaster: this is a message" to Corded
L233[12:05:45] <Michiyo> lol
L234[12:05:46] <Michiyo> ahh
L235[12:06:22] <Forecaster> yeah...
L236[12:11:26] ⇦ Quits: ForeBot (ForeBot!~ForeBot@81-226-25-175-no600.tbcn.telia.com) ()
L237[12:16:53] <PCL-Jenkins> Starting build #867 for job LanteaBot (previous build: SUCCESS)
L238[12:17:26] <PCL-Jenkins> Project LanteaBot build #867: SUCCESS in 34 sec: https://ci.pc-logix.com/job/LanteaBot/867/
L239[12:17:26] <PCL-Jenkins> * martinek90: Clean discord nicks
L240[12:17:27] <PCL-Jenkins> * martinek90: Remember to register your commands kids
L241[12:17:27] <PCL-Jenkins> * martinek90: Update notice handling
L242[12:17:49] ⇦ Quits: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net) (Remote host closed the connection)
L243[12:18:09] ⇨ Joins: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net)
L244[12:18:09] Spock sets mode: +o on MichiBot
L245[17:46:39] ⇦ Quits: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net) (Ping timeout: 189 seconds)
L246[17:47:31] ⇨ Joins: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net)
L247[17:47:31] Spock sets mode: +o on MichiBot
L248[20:56:03] ⇦ Quits: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net) (Ping timeout: 189 seconds)
L249[20:56:43] ⇨ Joins: MichiBot (MichiBot!~MichiBot@ip160.ip-192-99-104.net)
L250[20:56:43] Spock sets mode: +o on MichiBot
<<Prev Next>> Scroll to Top