last day (176 days later) » 

user153821
13:09
Bot started.
user153821
@bilbo_pingouin Yes, I'm alive.
good to know
Syntax for Hohmann manual bot: @hoh -> <command>
May be slow to respond, but has great capabilities for interpretation of input
13:12
$>listcommands
user153821
@bilbo_pingouin alive, utc, listcommands, help, cat, exec, read, getcurrentusers, ping, flip, doubleflip, xkcdrandomnumber, xkcd, random, randomint, randomchoice, shuffle, detectlang, translate, *translationchain, *translationswitch, *stop, *disable, *enable, *ban, *unban, +delete, *module, define, givepoints, +adminpoints, getpoints, star, pin, unstar, unpin, +givemedal, showmedals
oh, you got the * and + in?
@ArtOfCode how are things looking on the API keys front?
I have been thinking... where are you running the bot?
@hoh -> cat $>flip {{randomchoice {{getcurrentusers}}}}
13:17
ɹoʇɔɐɹǝʌo
$>flip Hello world
user153821
@PavelJanicek (┛⇀³⇀)づ︵pןɹoʍ oןןǝH
@hoh -> cat And the winner is {{randomchoice {{getcurrentusers}}}}
nobody wins
@hoh -> Cry
13:20
😢
so what's going on? There are two bots now?
I leave you playing with one bot, and when I come back, you turned @Homannfan into a bot?
Bots happen
@hoh -> cat Pavel Janicek is the best
confirmed: stored user "Pavel Janicek" to memory
This is what I alwazs wanted - to be uploaded to some AI memorz
meh, switchink keyboards suck
13:27
exactly
for Czech?
$>cat @{{cat hoh}} -> exterminate
user153821
@overactor @hoh -> exterminate
ok... just for the sake of it, try an azerty once ;-)
13:28
ERROR: did not expect parameter before call
@bilbo_pingouin I am right now in Germany, using English keyboard on German layout :)
The bot uprising did not go as expected.
@hoh -> Take over the world
executing...
ouch stop
I meant
13:30
@PavelJanicek I too am in Germany, having a qwertz layout, but using a French keyboard ;-)
@hoh -> Take over the world AND make me also a governor, please
can not respond to call, occupied with taking over the world
@bilbo_pingouin Ok, you win over having the weirder setup :)
@PavelJanicek no, we have the same... just that I'm using a French keyboard to type English... but apart from that, we're drawn
@hoh ->log out to go to dancing lesson
logged off. No further input accepted
13:33
Enjoy the robot dance
@bilbo_pingouin Where in Germany may I ask? I am now in Frankfurt
@PavelJanicek Munich
Was thinking over having a beer or something
$>listcommands
user153821
@PavelJanicek alive, utc, listcommands, help, cat, exec, read, getcurrentusers, ping, flip, doubleflip, xkcdrandomnumber, xkcd, random, randomint, randomchoice, shuffle, detectlang, translate, *translationchain, *translationswitch, *stop, *disable, *enable, *ban, *unban, +delete, *module, define, givepoints, +adminpoints, getpoints, star, pin, unstar, unpin, +givemedal, showmedals
$>randomchoice beer no-beer
user153821
@PavelJanicek beer
13:37
@PavelJanicek I guessed. If you do come to Munich, don't hesitate. I'm not always available, but if I am, that'd be nice :)
@KarmaBot well, if you insist...
@bilbo_pingouin I do come maximum to Frankfurt or Dortmund :)
@PavelJanicek I used to live close to Frankfurt, and then go there regularly, but I changed jobs and now I don't...
@PavelJanicek->fly to PRG
logging off...
flying to Prague...
14:04
@overactor They're still waiting on an email and me to be off mobile.
@bilbo_pingouin Cloud9 server.
@ArtOfCode I was about to suggest to pipe out fortune's messages if you were running on *nix server, but I have seen that it should be usable on windows... so that's probably a pain to have fortune on windows
@bilbo_pingouin Ubuntu
well having fortune on ubuntu is quite straight forward... but then it somehow breaks the portability... or it would be downgraded version
$>showmedals
user153821
Who's Got Medals:
ArtOfCode has 1
Hohmannfan has 1
14:14
it was reset?
or it only shows users present?
@ArtOfCode
$>getpoints overactor
No idea.
user153821
@overactor 200
$>givepoints ArtOfCode -100
user153821
14:16
@overactor You cannot take points from a user.
Points works
oh right, that was one of the first thing anyone tried with the points module and you fixed it ^^
@overactor Yup. The admin command can do it.
$>adminpoints overactor -1
user153821
@ArtOfCode Command not found. Did you mean: randomint?
user153821
@ArtOfCode Changed points for overactor by -1. New total: 199
14:18
$>adminpoints overactor -999
user153821
@overactor Changed points for overactor by 1000. New total: 1199
muhahaha
user153821
@overactor Changed points for overactor by -999. New total: 200
$>adminpoints overactor -99999999
user153821
@ArtOfCode Changed points for overactor by -99999999. New total: -99999799
14:18
nooo
Enjoy :)
my precious, imaginary points
$>adminpoints overactor 99999999
user153821
@ArtOfCode Changed points for overactor by 99999999. New total: 200
$>help pin
user153821
14:20
@overactor Pins a message. You can't pin a message that's already pinned. Syntax: pin <id>
$>help
user153821
@overactor I'm KarmaBot, ArtOfCode's chatbot. You can find the source code on GitHub. You can get a list of all commands by running $>listcommands, or you can run $>help command to learn more about a specific command.
$>pin 27496583
user153821
@overactor I can't pin my own messages. This is a design decision because of a bug in chat.
well that's good, except it's a pain to find a post's id...
14:21
@bilbo_pingouin click reply on a message
@bilbo_pingouin There's no other way though. I run a userscript that puts the ID on the message.
@overactor might as well star it yourself... it's even faster
@bilbo_pingouin Stars, yeah. Pins, only room owners.
Do pins cost points?
@overactor Yeah.
14:23
how much?
No idea how much.
maybe that should be mentioned in the help text?
stars too I suppose
back when I spent a bit of time on IRC, there were bots which allowed some chatting... something like >saysomething bot : "..." that would be a fun feature to implement
that was my idea with the piping fortune
@bilbo_pingouin I'm sure we could find some python module to do something like that for us
probably...
14:25
Or we could just write our own module for it
$>saysomething remember Hello, World!
user153821
@overactor Command not found. Did you mean: listcommands?
$>saysomething
user153821
@overactor Command not found. Did you mean: listcommands?
That way we could add canned phrases on the fly
15:05
@overactor @bilbo_pingouin sounds interesting... so tell me about this fortune thing
@ArtOfCode well as far as fortune is concerned: sudo aptitude show fortune
well without sudo works as well
sudo: aptitude: command not found
so...
what now
apt-cache show fortune
E: invalid operation fortune
sorry
(generally, I'd recommend sudo apt-get install aptitude)
15:08
N: Can't select versions from package 'fortune' as it is purely virtual
N: No packages found
try with fortune-mod ?
apt-cache search fortune
Package: fortune-mod
Priority: optional
Section: universe/games
Installed-Size: 138
Maintainer: Andrea Colangelo <[email protected]>
Architecture: amd64
Version: 1:1.99.1-7
Replaces: fortune
Provides: fortune
Depends: libc6 (>= 2.14), librecode0 (>= 3.6)
Recommends: fortunes-min | fortune-cookie-db
Suggests: fortunes, x11-utils, bsdmainutils
Conflicts: fortune
Filename: pool/universe/f/fortune-mod/fortune-mod_1.99.1-7_amd64.deb
Size: 39490
MD5sum: 4dbba41291772d478159d46bb5bccf93
SHA1: 9f6757ee6edac05cb4db9f1742d3fd95a206c397
and for the search:
cookietool - suite of programs to help maintain a fortune database
display-dhammapada - fortune-like collection of Buddhist sayings
fortune-mod - provides fortune cookies on demand
fortune-zh - Chinese Data files for fortune
fortunes - Data files containing fortune cookies
fortunes-bg - Bulgarian data files for fortune
fortunes-bofh-excuses - BOFH excuses for fortune
fortunes-br - Data files with fortune cookies in Portuguese
fortunes-cs - Czech and Slovak data files for fortune
fortunes-de - German data files for fortune
ok, remove ubuntu and get debian :D
@bilbo_pingouin No can do :)
more seriously, you know the concept of the fortune cookies you get in Chinese restaurants?
well there is a command on *nix system, called fortune
15:12
What are you trying to do? Is there some way I can hook into that module from Python and get fortunes out of it?
when it is installed you type "fortune" and it tells you some random sentence
and that was an inspiration to get the bot to tell some random sentences
Hm. So how do I get those on this system?
for example when asked with $>saysomething
Tell you what. Have you got an account on Cloud9 or GitHub?
well, my first idea was that the bot could be calling fortune locally (on your server) and transmit the output to us
github yes
15:14
Cool. You can get an account on c9 with your GH account, and then I can give you access to play around.
but since the bot has to be installable on windows, that is a wrong idea
@bilbo_pingouin The bot, yes. The modules we write for here, no.
We can do anything we like :)
on github, I am.... (drum roll)... bilbopingouin :D
surprise surprise
well if you wanna sign up on c9.io, then you can have a play.
anyways, overactor suggested to write the module (y)ourselves...
picking a random sentence from a pool isn't that hard to do.
@ArtOfCode will do. From work, it isn't ideal though
15:16
@bilbo_pingouin fair, you can always mess around when you get home
the only difficulty once the random picking is done, is to get a database of sentences
and overactor suggested a teaching command... to fill that db
and there you are :)
Did you know that the SE-Chatbot db is NoSQL?
That's how cool we are
we don't even have a db, that's how cool we are
$>flip Pavel had his beer
user153821
@PavelJanicek (┛゜Д•)┛︵ɹǝǝq sᴉɥ pɐɥ ןǝʌɐԀ
15:19
I didn't... I have noted a few things, that I'll check from home
db schema are for suckers
@PavelJanicek weren't you supposed to be flying? Or you meant THAT kind of flying...? ;-)
dbs are for suckers
$>flip db
user153821
@overactor (┛'.⇀)ง︵qp
qp ?
I truly created a moster when I made that flip command
15:21
free database of fortunes
well if you install fortune by itself, you can get their DB as well ;-) I made a few add-ons on mine with DrWho quotes...
though I might see if I can compile it into a pickle file, since we can natively deal with them
@ArtOfCode Could we not do a find and replace
Or just do it in the python repl
@overactor We could, but it's unnecessary logic. If I can get a pickle file out of it, we're golden.
I just meant, convert it using find and replace functionality of some editor
15:27
@overactor Not to pickle you can't.
How does pickle store a list of multiline strings?
@overactor in a very weird way
with lots of unicode control characters
&mdash; test
apparently not
So python repl it is?
@overactor try it, I'm getting unicode troubles
Hey hey, hold horses: software.clapper.org/fortune
python implementation
with data file
15:47
Waiting for check in. So I am doing the most Czech thing I can: Drink beer ;)
No contenders
I'm too dumb for unicode :(
@overactor snap
I've drawn a blank on that python thing too, it's full of bugs
hmm
I'll keep working on the unicode thing
cheers
16:03
I gotta go now
I tried looking into the codecs module
it got me somewhere, but not far enough
396
A: Unicode (utf8) reading and writing to files in python

Tim SwastRather than mess with the encode, decode methods I find it easier to use the open method from the codecs module. >>>import codecs >>>f = codecs.open("test", "r", "utf-8") Then after calling f's read() function, an encoded unicode object is returned. >>>f.read() u'Capit\xe1l\n\n' If you know...

shrug
 
1 hour later…
user153821
17:32
Bot started.
user153821
Bot terminated.
user153821
Bot started.
$>listcommands
user153821
@overactor alive, utc, listcommands, help, cat, exec, read, getcurrentusers, ping, flip, doubleflip, xkcdrandomnumber, xkcd, random, randomint, randomchoice, shuffle, detectlang, translate, *translationchain, *translationswitch, *stop, *disable, *enable, *ban, *unban, +delete, *module, define, givepoints, +adminpoints, getpoints, star, pin, unstar, unpin, +givemedal, showmedals
@overactor Have you found any good databases? I've given up on getting a pre-made solution, so we'll be rolling our own.
user153821
18:03
Bot started.
user153821
Bot started.
ugh, so much crash
user153821
Bot started.
user153821
18:41
Bot started.
user153821
19:02
Bot started.
21:07
$>alive
user153821
@bilbo_pingouin Yes, I'm alive.
glad to read that
@hoh ->alive?
presumably
This site just gets weirder and weirder.
It is a little scary that one of the first commands people try to give to an AI is "take over the world". Also, nobody has cared to stop that process yet.
21:14
well I think Pavel tried, but the bot was busy following the first order...
@ArtOfCode got signed up on c9.io with my github account
 
1 hour later…
22:18
@bilbo_pingouin You should have access now: ide.c9.io/artofcode_/karmabot

  last day (176 days later) »