Link
I did it! Now Perlbot officially runs with no Python whatsoever, only Perl and a little Bash!
You can read the full changelog at the link!
3 notes
·
View notes
Text
So anyway I’ve gotten basically everything to work yesterday, but it’s not all very polished yet
I’m gonna release 2.0 now !!
For 2.1:
Delete all the old asks from my inbox (until then I have to keep the piece of code that checks if the ask already was answered)
0 notes
Note
test
Steven, we think got a testI through we -
6 notes
·
View notes
Text
Today I worked on perlbot a bit.
On my laptop, the function I made to generate sentences worked perfectly, but trying to run it on my raspberry pi always failed with this error:
You cannot overwrite a locally defined method (normalize) with an accessor at /usr/share/perl5/site_perl/String/Markov.pm line 14. Compilation failed in require at ./perlbot.pl line 11. BEGIN failed--compilation aborted at ./perlbot.pl line 11. Compilation failed in require at main.pl line 2.
A simple workaround was to change the normalize accessor in the String::Markov module to something else (like do_normalize), but I wanted to get to the bottom of this.
The reason why the error showed up on my raspberry pi but not my laptop was that the perl interpreter was compiled with different options on each platform. So, I recompiled the interpreter on my laptop with the same compile flags as on the raspberry pi and managed to reproduce the problem.
I made a simple script that simply included the String::Markov module and strangely, no such error occurred: that module wasn’t the problem.
Another thing I tried was make a perl script with all of perlbot’s dependencies, and commenting each out before running the script until it stopped failing.
And as it turns out, WWW::Tumblr has a method named normalize, somewhere in its code, which String::Markov would try to overwrite with its normalize accessor. :)
So now, this brings us to a much simpler workaround: requiring the String::Markov module before the WWW::Tumblr.
Now I’m off to keep on procrastinating my finals revisions to work on some bot I made nearly a year ago :)
1 note
·
View note
Quote
Steven and today and today and today and today and today for That today today .
perlbot
0 notes
Quote
But we’ll knows what these centipeetles are here to get .
perlbot
1 note
·
View note
Text
im mostly done now! im really glad this means perlbot is finally fully made in perl !!!!!!
plus now the subroutine for generating answers generates full sentences (which doesnt mean they make sense now but still)
0 notes
Quote
Why is your communication communication communication that communication ?
perlbot
0 notes
Quote
our Skull powers Skull Look our powers to our Skull are you was An Skull with extremely , extremely An Skull Look swarming with you ?
perlbot
0 notes
Text
not to mention: she now knows abt punctuation !!!!!!!
you are extremely with powers ?
THERE IT IS SHE ANSWERED WOOOOOOOOOOOOOO
i told her “I don’t like cats.” and she said this !!!!!!!!!!!!!
1 note
·
View note
Text
you are extremely with powers ?
THERE IT IS SHE ANSWERED WOOOOOOOOOOOOOO
i told her “I don’t like cats.” and she said this !!!!!!!!!!!!!
#im glad#i havent made it into a subroutine yet bc i still have stuff to do#but !!!!!!!#its so close !!!!!!#perlbot 2.0
1 note
·
View note
Photo
help
0 notes