« first day (1 day earlier)      last day (482 days later) » 

6:01 PM
<sgsd>
@Zizouz212 What did you have to put in the data file to prevent the EOFError?
 
Let me get that for you:
Is this the pickling file?
 
Ja
 
You should be able to get the data if you type this in:
import sys, pickle
pickle.dump({}, sys.stdout)
Then copy the output into the file
 
ta
 
Got it?
Got it for you here now:
(dp0
.
 
6:08 PM
Well we'll see if it crashes when it starts
 
user153821
Bot started.
 
No, good
OK Karma you can sleep again
 
It works?
 
>>stop
Would appear so
Or not
 
It works...
 
user153821
6:10 PM
Bot started.
 
Save failed on stopping
>>stop
 
user153821
@ArtOfCode Bot terminated.
 
That's better
Now I just need to add data
 
Save failed?
 
Yeah, when I stopped it the first time it didn't save the files
 
6:13 PM
Weird... Is there a Points.close() anywhere where you terminate?
 
I added it to fix the bug
 
Try it, it should save with that
 
In Chatbot.py in command_stop there used to be
SaveIO.save(SaveIO.path, Points)
but i changed the saveIO class a bit so I changed that line to
Points.close()
It all works now
 
Ok
So it's good?
 
Yep
 
6:17 PM
:D
 
I'm trying to do the stars/pins dicts
 
Oh here, let me help you on that
 
I've got some of the way there, let me push what I've got
 
Sure, I'll take a look
 
There we go
room topic changed to Chatbot Dev: Discussion of development of chatbots for the SE chat network [chatbots] [code-problems] [git-confusion] [stack-traces]
 
6:24 PM
Alright, I see that pins_data.p and stars_data.p Any controllers?
 
Controllers?
 
Places for commands?
 
Points.star adds data to Stars which gets saved to stars_data
I'm going to go eat, back later
 
Sure :)
 
Bot started.
>>alive
 
6:28 PM
>> alive
 
@Zizouz212 Yes, I'm alive. Why wouldn't I be?
 
>> stop
 
@Zizouz212 Bot terminated.
 
ok
 
Bot started.
 
6:31 PM
>> support
 
@Zizouz212 @Zizouz212!!! You better get the heck over here!!!!
 
Oh dear...
 
@ProgramFOX on_bot_load() should probaly be bound to the module
we also probably need a reference to the bot
could I add that?
although, no, I don't think it needs to be bound
 
>> xkcd 221
 
6:45 PM
Hey, do you know how I can change where to place the command?
i.e. Change this >>
 
Bot started.
 
>>listcommands
 
@Zizouz212 Commands: alive, help, listcommands, random, randomchoice, randomint, shuffle, support, translate, utc, xkcd, xkcdrandomnumber
 
@overactor Bot started? or Bot Dead?
>>help
 
@Zizouz212 I'm ParrotBot, Zinedine'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.
 
6:48 PM
Bot started.
 
>> help utc
 
@Zizouz212 Shows the current UTC time. Syntax: >>utc
 
>>help support
 
@Zizouz212 Command exists, but no help entry found.
 
>> ban overactor
 
6:50 PM
@Zizouz212 Invalid arguments.
 
>> help ban
 
@Zizouz212 Owner-only command. Bans a user from using the bot. Syntax: >>ban user_id
 
>>ban 122560
 
@Zizouz212 User @overactor has been banned.
 
>> unban @overactor
 
6:52 PM
@Zizouz212 Invalid arguments.
 
>>unban 122560
 
@Zizouz212 User @overactor has been unbanned.
 
ok...
 
@Zizouz212 something wrong?
 
no, just banning and unbanning :)
Do you know how to change the prefix to execute?
i.e. >>
 
6:57 PM
hmm
 
I've looked around in the source but couldn't find anything
 
    if parts[0].startswith(">>"):
        cmd_args = content[2:]
 
No like changes it so instead of:
>> hello
 
@Zizouz212 Command not found.
 
I do like:
"" hello
There should be a string with this somewhere, but I can't find it...
 
6:58 PM
    if parts[0].startswith('""'):
        cmd_args = content[2:]
That's the part you're looking for
 
Which file and line?
 
ChatBot.py
I don't think we have the same version though
 
Seriously? I looked in that place like a million times...
 

« first day (1 day earlier)      last day (482 days later) »