user name \/ | message | ||
m3xpl4y |
so got to go now, have to move on with my own project | ||
cohopponentbot |
Hey guys! I am a bot connected via TwitchLib! | ||
xcomreborn |
bob | ||
xcomreborn |
fred | ||
lord_shish |
your name is definitely bob | ||
cohopponentbot |
Hey guys! I am a bot connected via TwitchLib! | ||
xcomreborn |
test | ||
xcomreborn |
bob | ||
xcomreborn |
test | ||
xcomreborn |
oh fuck | ||
xcomreborn |
bob | ||
xcomreborn |
this bob this | ||
xcomreborn |
!closetts | ||
cohopponentbot |
Closing TTS Bot. | ||
cohopponentbot |
Hey guys! I am a bot connected via TwitchLib! | ||
xcomreborn |
hello | ||
xcomreborn |
bob | ||
lord_shish |
regex is horrible | ||
lord_shish |
best to avoid if u can | ||
lord_shish |
think the problem is that your code is infinite looping | ||
10bag |
bro i just read the SO link and it doesn't say what you think it does | ||
10bag |
https://stackoverflow.com/questions/40432286/string-replace-in-a-while-loop-never-stops | ||
lord_shish |
if your code is infinite loopin without regex then its ur code bro | ||
10bag |
this example you used just shows a guy not understanding the immutability of strings in python | ||
10bag |
and the correction is in the top answer | ||
10bag |
correct that guy's code and it looks way more readable than any regex ever will, that's all i'm saying bro | ||
lord_shish |
^ | ||
10bag |
you could do this with regex 4Head | ||
10bag |
right yeah that's totally different to what you were doing yesterday - stripping a series of individual characters out of a string | ||
10bag |
not the same problem |