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

1:00 PM
@overactor "bamboozle"?
 
Your bot needs a define command
 
@overactor oh
@overactor Hmm... I have thought of that when I created it, but rejected that idea. I wasn't sure if bot owners would like it that everyone can add commands.
 
@ProgramFOX no no
>>define bamboozle
api call to google
 
Oh! Like that.
good idea
 
but not the highest priority now
 
1:03 PM
I can make a call to dictionary.reference.com.
but first the refactoring stuff :P
 
@Zizouz212 'twas me that pinged you. Could you work on making a dictionary for starring and pinning?
Keeps a record of who starred and pinned a message
 
@ArtOfCode at this point it would probably pay off to switch to the new version of the bot
@ProgramFOX or shoudl a wait a bit longer?
 
Hey :D
Dictionary for starring and pinning?
Sure :D
 
@overactor Perhaps waiting a bit longer, until the Shadow's Den stuff is removed.
I hope to get that done today.
 
Also, check out my ParrotBot:
ParrotBot, Flying above...
31 3
 
1:06 PM
@ProgramFOX has the on_event() thing been added?
 
@overactor I'm writing some code to test that now.
 
@Zizouz212 what does it do?
 
I think we'll probably use it for external communications (e.g. with OSI and anyone else)
 
or will it do...
 
That way, KarmaBot can still have fun :)
I just started with it this morning
 
1:08 PM
@Zizouz212 Where did you fork it from?
 
Clearly, @ProgramFOX helped me get everything started :D
 
Or is it all local so far?
 
Like installing everything and such
I'm going to be placing it on Github :)
 
Bot started.
 
Testing the on_event watchers.
 
1:10 PM
ProgramFOX posted a message!
 
@Zizouz212 you'll only need to place a few files of it on there
 
overactor posted a message!
 
cool
 
overactor posted a message!
 
alright, that's working!
killed
 
1:10 PM
maybe not...
 
@ProgramFOX nice
 
it is, I just killed it before I said something
 
anything I can do?
 
oh :)
 
@overactor For now, I think not -- I'm not starting on removing all Shadow's Den code from the repo, and that's the last refactoring needed on the main repo.
 
1:11 PM
cool
@ProgramFox I got another idea
we could extend ban and unban so you can ban people from specific commands
 
That's a good idea.
 
I'll add an issue, cause I'm not doing that now
 
ok!
After the code removal I'll go on a closing spree because many issues will have to be moved to another repository.
 
I'll switch to the new version when it's ready and when I've got this version stable so I have a fallback if it doesn't work for a while
>>alive
no, clearly
 
Oh I'll add a warning for when there are command collisions
 
user153821
1:21 PM
Bot started.
 
>>alive
 
user153821
@ArtOfCode Yes, I'm alive.
 
>> points get
 
user153821
@Zizouz212 800
 
>>points get
 
user153821
1:21 PM
@ArtOfCode 689
 
>> points give ArtOfCode 61
 
user153821
@Zizouz212 Changed points for ArtOfCode by 61. New total: 750
 
>>points get
 
user153821
@Zizouz212 739
 
>>points give Zizouz212 51
 
user153821
1:22 PM
@ArtOfCode Changed points for Zizouz212 by 51. New total: 790
 
>>points get
 
>>points get ArtOfCode
 
user153821
@ArtOfCode 699
 
user153821
@Zizouz212 699
 
>>points get
 
user153821
1:22 PM
@Zizouz212 790
 
>>points admin ArtOfCode 401
>>points admin Zizouz212 210
 
user153821
@ArtOfCode Changed points for Zizouz212 by 210. New total: 1000
 
>>points get
 
user153821
@ArtOfCode 1100
 
>>points admin ArtOfCode -100
 
user153821
1:23 PM
@ArtOfCode Changed points for ArtOfCode by -100. New total: 1000
 
Just didn't output that one time...
 
>>points get Zizouz212
 
user153821
@ArtOfCode 1000
 
good :)
>>points get ProgramFOX
 
user153821
@ArtOfCode 300
 
1:24 PM
>>points get overactor
 
user153821
@ArtOfCode 232
 
points are good :)
Well, that's good :)
HTTPError has become TypeError
Do you know if there is a way to get the number of stars in a post?
 
@Zizouz212 just a sec
 
sure
 
1:30 PM
@ProgramFOX Hey, any idea why I'd be getting an HTTPError?
 
Can you post the stack trace?
 
Sure
HTTPError: 404 Client Error: Not Found
2015-07-01 13:30:11.009263 UTC
File "/Users/zinedine/SE-Chatbot/ExceptHook.py", line 38, in run_with_except_hook
run_old(*args, **kw)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)

File "/Users/zinedine/SE-Chatbot/ChatExchange/chatexchange/client.py", line 185, in _worker
self._do_action_despite_throttling(next_action)

File "/Users/zinedine/SE-Chatbot/ChatExchange/chatexchange/client.py", line 214, in _do_action_despite_throttling
 
Uhh... I cannot say anything else than that the request fails.
 
Well, that's lovely
 
Is your requests dependency upgraded to the latest?
 
1:32 PM
I get like 10 HTTPErrors and then a single TypeError -_-
@ProgramFOX Yep, it should be the newest one
 
And from what account do you run it?
 
It's weird, because right before I ran it, I got this:
TypeError: 'NoneType' object has no attribute '__getitem__'
2015-07-01 13:26:04.422661 UTC
File "main.py", line 43, in <module>
bot.main(config_data, additional_general_config)

File "/Users/zinedine/SE-Chatbot/Chatbot.py", line 181, in main
self.client.login(email, password)

File "/Users/zinedine/SE-Chatbot/ChatExchange/chatexchange/client.py", line 140, in login
self._br.login_se_chat()

File "/Users/zinedine/SE-Chatbot/ChatExchange/chatexchange/browser.py", line 212, in login_se_chat
auth_token = start_login_soup.find('input', {'name': 'authToken'})['value']
So it goes through... sometimes :/
 
Okay, looking at that, my guess is that you try to run it on ParrotBot's account.
But that account does not yet have 20 rep on chat.
because caching
 
So the TypeError i understand, but are all the HTTPError because of the account, or is it me?
 
The account, because it has a Network Profile so the TypeError is not there, but it cannot post to chat --> HTTPError.
try to run it from your own account
 
1:35 PM
Okay. Did we see that in KarmaBot?
and I can't run it from my own, mine isn't OpenID... :/
I can run the KarmaBot, I have the credentials.
 
@Zizouz212 No, because KarmaBot's chat profile had already 20 rep on chat when the Network Profile was created.
 
Okay, it makes sense now
Should I try KarmaBot?
 
user153821
Bot started.
 
Okay, so it's the account
>>stop
 
user153821
@Zizouz212 Bot terminated.
 
1:38 PM
Good!
So now just to wait...
 
Bot started.
cool, it works
 
Bot started.
 
It works!
>>listcommands
 
@Zizouz212 Commands: alive, help, listcommands, random, randomchoice, randomint, shuffle, translate, utc, xkcd, xkcdrandomnumber
Hello!
 
Okay, not I'll start adding features :D
 
1:40 PM
Hi @ParrotBot :D
 
@ProgramFOX Why Hello There!
 
I'll start working on the stuff that we're planning on for the organizations :D
>>stop
 
@Zizouz212 Bot terminated.
Bot started.
 
>>listcommands
 
@Zizouz212 Commands: alive, help, listcommands, random, randomchoice, randomint, shuffle, translate, utc, xkcd, xkcdrandomnumber
 
1:45 PM
>>alive
 
@Zizouz212 Yes, I'm alive.
Let's see!
 
>>random
 
@Zizouz212 0.565418307564
 
>>randomchoice [5,6,7,8,9,10]
 
@Zizouz212 [5,6,7,8,9,10]
 
1:46 PM
>>randomchoice
 
@Zizouz212 Not enough arguments.
 
>>randomchoice 5 6 7 8 9 10 8 6
 
@Zizouz212 10
 
>>utc
 
@Zizouz212 Wed Jul 1 13:46:43 2015
 
1:46 PM
>>xkcdrandomnumber
 
>>xkcd
 
@Zizouz212 Not enough arguments.
 
>>xkcd 4
 
1:47 PM
>>translate fr-en: Bonjour!
 
@Zizouz212 Language not in list. If the language is supported, ping ProgramFOX and he will add it.
 
@ProgramFOX Should we move the ModuleTemplate files into their own dir?
 
>>translate fr en Bonjour!
 
@Zizouz212 Hello!
 
>>stop
 
1:47 PM
@Zizouz212 Bot terminated.
 
@overactor I believe it would be a good idea to move all templates to a templates/ folder, actually.
that includes ConfigTemplate.py
 
I'll do it
Can you commit and push your changes?
git is icky about moving files
it should be the only thing you do with those files in any commit
 
I haven't changed anything in those files, so I think you can go on without I push first.
 
otherwise it just deletes it from one dir and makes it in the other
okay
Can you pull though?
Wait, i'll check it out
If you need to or not
 
I can probably pull after I commit.
 
1:51 PM
Did you pull in the last 2 hours?
 
yep
 
should be fine then
call the folder templates?
 
yep
 
Bot started.
 
nice, so far it's still working after the code removal
I made a few other refactorings too, which were about handling special cases like the argument parsing for >>translate.
I came across that when removing some code.
>>alive
 
2:01 PM
@ProgramFOX Argument parsing failed.
 
-_-
>>help alive
 
@ProgramFOX Argument parsing failed.
 
ugh
lol, I forgot a not operator
 
Bot started.
 
>>alive
 
2:03 PM
@ProgramFOX Yes, I'm alive.
 
>>help alive
@FOX9000 !delete!
>>alive
 
@ProgramFOX Yes, I'm alive.
 
>>delete 22498237
oops, it crashed at delete
>>delete 22498263
works now \o/
>>translate en nl This is a test.
 
@ProgramFOX deze
 
ugh, argument parsing failed
>>stop
 
2:05 PM
@ProgramFOX Bot terminated.
 
wait, the method works
must go wrong somewhere else then
 
weird
Bot started.
 
launching debugger
 
Phew
 
Bot started.
 
2:09 PM
this directory moving business isn't really working
 
>>translate en nl This is a test.
@overactor Oh?
 
@FOX9000 I'm getting an error when running $+stop by the way
 
Ohh... I found my mistake.
 
@ProgramFOX git always sees it as removing files and then adding new files somewhere else
 
@overactor stop is the most error prone command there is, unfortunately :/
 
2:12 PM
Well, fortunately crashing does essentially the same as what >>stop is intended to do.
@ProgramFOX what was it?
 
@overactor I was storing the special argument parsing output into a variable which wasn't used anymore later on, instead of in the actual arguments variable.
 
Bot started.
 
>>translate en nl This is a test.
 
@ProgramFOX Dit is een test.
 
^ much better
>>translationchain 4 en nl This is a test.
 
2:14 PM
@ProgramFOX Translation chain started. Translation made by Google Translate. Some messages in the chain might not be posted due to a reason I don't know.
Translate en-ro: Acesta este un test.
Translate ro-ka: ეს ტესტია. es testia.
Translate ka-pl: To jest test. es testia . es testia. es testia.
Final translation result (pl-nl): Dit is een test. testi es . testi es . testi es .
 
Oh, i got the moving thing
 
>>translationswitch 4 en fr This is a test.
 
@ProgramFOX Translation switch started. Translation made by Google Translate. Some messages in the switch might not be posted due to a reason I don't know.
Translate en-fr: C'est un test.
Translate fr-en: This is a test.
Final result (fr-en): This is a test.
 
>>disable
 
@ProgramFOX Bot disabled, run >>enable to enable it again.
 
2:16 PM
@overactor You have to do git mv to make Git register it as a move.
>>enable
 
@ProgramFOX Bot enabled.
 
No crashes :D
>>stop
 
@ProgramFOX Bot terminated.
 
@ProgramFOX I figured that out just now :D
@ProgramFOX sweet
 
I'm happy there are tools like P4Merge which make it a lot easier to resolve merge conflicts.
 
2:18 PM
did you pull?
 
yeah
having some conflicts in Chatbot.py
 
@ProgramFOX tough ones?
 
@overactor No, only a minor one.
it's resolved already
closes the refactoring issue on GH
 
@ArtOfCode it's merging time
right? @ProgramFOX
 
yep!
 
2:22 PM
now to document this newness
You know what would be cool?
a python file that lets you install a module automatically
: D
 
That would be cool, but I don't know how feasible that would be...
 
grab it from github
put it in the right folder
edit the Manifest file
boom
I have no clue how to do any of those things in python
 
I can do step 1 and step 2, but step 3... I can see syntax errors appear there because the command's edits to that file might conflict with how it looks like.
 
@ProgramFOX what are Commands.py and CommandsHelp.py still doing there?
 
oops, forgot those
deleted
 
2:29 PM
@ProgramFox, you should make a windows version of setup.sh too
It can expect pip and git to be installed, right?
 
I wish, but I'm not aware of a command-line tool to unpack .tar.gz files for Windows.
@overactor pip on Windows? Nope.
 
I have pip
 
that script would have to download the .tar.gz files of the dependencies, unpack them and run setup.py
@overactor :O
 
It comes with python these days I think
 
Even for 2.7?
 
2:31 PM
Python27/Scripts up in my PATH
 
huh it is there indeed
that's nice
I'll add a setup.bat then.
 
so having correctly installed Python and having git is not too much to ask from someone who wants to run the bot that's written in python that he got from github, right?
You know what you could do for the installing modules gig
Expect a very exact format
if there's a small deviation, fail and don't install
otherwise, just add it to the manifest
(and install of course)
 
that should work
 
syntax could be:
>> install.bat/sh/py? <git_repo> [<destination MetaModule>] <module_name>
Because otherwise you can't know which file needs to be added
if you don't specify the destination MetaModule, it's added to the Manifest
 
I'd make that a Python script; my Batch and Shell skills are near zero.
 
2:39 PM
If you know how to do it
it's also nice since it's system agnostic
 
The git clone command is going to be very useful for that.
 
absolutely
 
I'm back and boiled
 
is modifying code on the fly difficult?
@ArtOfCode It is very hot.
 
@overactor Switzerland?
Or am I thinking of someone else?
 
2:41 PM
@ArtOfCode Switzerland.
 
success
It's 35 C over here :(
 
It's hot here too.
 
So basically most of Europe is going to be hot right now
 
@ProgramFOX It's hot in my mother country, it's hot where I am
it's hot everywhere
@ArtOfCode success?
 
@Zizouz212 How's your dictionary coming on?
@overactor Correct recall of your location
 
2:43 PM
ah
 
Oh, still working on it, I've been focusing a little on my brother...
 
Fair enough :)
 
@ArtOfCode did you catch that it's merging time?
 
I'll start right now
:D
 
@Zizouz212 Why is he not helping? Everyone else is doing their part!
 
2:44 PM
What?
 
@overactor Might be on your end... I'm going to wait until our version is stable for the old bot version, then move it over
 
(your brother, who is 5)
 
Oh...
 
Your little bro'. He can write perfect Python first time, right?
 
He says he can write his name
And then the computer is going to explode if he does anything else
 
2:44 PM
Hmmm... might have a way to go yet then
 
@Zizouz212 That's really cool
So he's a black hat hacker then?
 
print amaan
Almost...
 
that could be a valid python snippet
put those strings in variables, good thinking amaan.
 
He's smarter than all of us!
 
Though I would suggest putting them in an external file (perhapos xml) and reading them from there :]
 
2:47 PM
Parse xml?
Errr gives me the shivers...
 
@Zizouz212 yeah, with regex
 
Even worse...
How could I scare my brother with such horrible programming tools?
 
You weren't implementing xml parsers for your first hello world program at 5?
 
If anyone asks me to ever parse, I'd run away...
 
fine, JSON
 
2:49 PM
Geez, maybe...
not
No parsing, pickling!
 
@ProgramFOX what's going on on your end?
ooh, .bat file
I'm having a look at the $+stop issue, it's quite a problem
 
@overactor On my end?
 

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