<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[04:51:00] ⇦ Quits: bondings (bondings!~svennieke@user.186-235-157-27.acesso10.net.br) (Remote host closed the connection)
L2[06:19:13] ⇨ Joins: Genets (Genets!~kris@78.170.77.29)
L3[09:12:51] <ThePiGuy24> %roll 9999999999d9999999999
L4[09:12:51] <MichiBot> 9999999999d9999999999
L5[09:13:02] <ThePiGuy24> well duh
L6[09:13:19] <Forecaster> %roll 9999d9999
L7[09:13:20] <MichiBot> Message too long to send to channel https://paste.pc-logix.com/ikeropehuc
L8[09:14:34] <Forecaster> Total: 49 546 313
L9[09:14:40] <Forecaster> I think I hit whatever the target was
L10[09:16:52] <Forecaster> presumably the regex pattern doesn't recognize anything beyond that, so it just ignores it
L11[09:17:12] <Forecaster> and roll is passthrough, so you can do
L12[09:17:30] <Forecaster> %roll I do 2d8+2 damage if a d20 hits vs an 18
L13[09:17:31] <MichiBot> I do [5,2]+2 damage if a 7 hits vs an 18 => I do 9 damage if a 7 hits vs an 18
L14[09:17:42] <ThePiGuy24> neat
L15[09:17:45] <Forecaster> aw I missed >:
L16[09:18:08] <Forecaster> it does all kinds of math
L17[09:18:28] <Forecaster> %roll (1d4+2)*2
L18[09:18:28] <MichiBot> (4+2)*2 => 12
L19[09:18:46] <ThePiGuy24> sounds like ~~hell~~ fun to maintain
L20[09:19:11] <Forecaster> I haven't had to maintain it, I wrote it once and that's been it :P
L21[09:20:38] <Forecaster> This class is responsible for it: https://github.com/PC-Logix/LanteaBot/blob/5d6b762e231da7d5ca33f0f9dee073a87a6506c5/src/main/java/pcl/lc/utils/MathParseExpression.java
L22[09:21:11] <Forecaster> it's actually pretty simple
L23[09:21:16] <Forecaster> and only 110 lines
L24[09:23:38] <ThePiGuy24> java pains me more than C#
L25[09:23:47] <ThePiGuy24> and C# pains me quite alot
L26[10:44:02] <Forecaster> they all look the same to me
L27[12:24:13] ⇨ Joins: Ocawesome101 (Ocawesome101!~ocawesome@38.65.248.163)
L28[12:24:55] <Ocawesome101> %lua function string.cursed(s) return string.typo(string.wonkweird(s)) end
L29[12:25:05] <Ocawesome101> %lua string.cursed("this is incredibly cursed")
L30[12:25:05] <MichiBot> tHoS s oNcRiDoBl CRRsId
L31[12:25:10] <Ocawesome101> see?
L32[12:25:24] <Ocawesome101> %lua string.typo("this is incredibly typo'd")
L33[12:25:24] <MichiBot> this is incrediblj typoo'dd
L34[12:25:29] <Ocawesome101> %lua string.typo("this is incredibly typo'd")
L35[12:25:29] <MichiBot> this is inredibly ypo'd
L36[12:25:39] <Ocawesome101> %lua typo.chance = 10
L37[12:25:41] <Ocawesome101> %lua string.typo("this is incredibly typo'd")
L38[12:25:42] <MichiBot> this is incredibly typo'd
L39[12:25:51] <Ocawesome101> %lua string.typo("this is incredibly typo'd")
L40[12:25:52] <MichiBot> this is incredibly typo'd
L41[12:25:57] <Ocawesome101> %lua string.typo("this is incredibly typo'd")
L42[12:25:57] <MichiBot> th7s is increediibly tyypo'd
L43[12:26:15] <Ocawesome101> that's more like it
L44[12:27:33] <Ocawesome101> %lua function string.cursed(s) c = typo.chance typo.chance = 20 r = string.typo(string.wonkweird(s)) typo.chance = c return r end
L45[12:42:25] <Bob> Why tf isnt c local
L46[12:45:31] <Michiyo> %lua print(c)
L47[12:45:31] <MichiBot> 10
L48[12:45:49] <Michiyo> %lua c=nil
L49[12:45:50] <Michiyo> %lua print(c)
L50[12:45:50] <MichiBot> nil
L51[12:45:53] <Michiyo> \o/
L52[12:45:54] <Michiyo> :P
L53[12:46:51] <Bob> Globals = Ban
L54[12:47:26] <Ocawesome101> %lua function string.cursed(s) local c = typo.chance typo.chance = 20 r = string.typo(string.wonkweird(s)) typo.chance = c return r end
L55[12:47:28] <Ocawesome101> fixed
L56[12:48:04] <Michiyo> %lua print(c)
L57[12:48:04] <MichiBot> nil
L58[12:48:07] <Michiyo> +1
L59[12:48:08] <Michiyo> lol
L60[14:14:11] ⇦ Quits: Ocawesome101 (Ocawesome101!~ocawesome@38.65.248.163) (Quit: A Konversation user has left the chat.)
L61[14:22:29] <Bob> What about r duuuh
L62[14:34:35] <Ocawesome101> %lua function string.cursed(s) local c = typo.chance typo.chance = 20 local r = string.typo(string.wonkweird(s)) typo.chance = c return r end
L63[14:34:39] <Ocawesome101> fixed
L64[14:34:46] <Ocawesome101> %lua print ( r )
L65[14:34:47] <MichiBot> hIyy cHHiCk tHoSUaT Ot'z oNcRiDoBk CaRsId
L66[14:34:56] <Ocawesome101> %lua r = nil
<<Prev Next>> Scroll to Top