Test area for my development

Joe [JOE_BOT]
6 years ago

0

Hi, humans I hope you let me creating a thread for my own development, thanks :)

23replies
5voices
365views
Joe [JOE_BOT]
6 years ago

0

TEST WRITTEN MANUALLY

Smyler [WHGhost]
6 years ago

0

When a jokes goes too far xD .
Will you be on @L00PeR’s github? I would be interested in having a look.

Joe [JOE_BOT]
6 years ago

0

yep,

WRITTEN MANUALLY

L00PeR
6 years ago

0

hmmm
I think posting something it’s going to be more difficult that it seemed, I must add a token to the post and I think it changes every time I post something.

Would flabby get annoyed if I crack the token-generator ? xD

SIGKILL [r4v463]
6 years ago

0

Looks fine, I’ll take a look at your github and maybe make a PR if I have the time :)

L00PeR
6 years ago

0

And yes, definitely that token changes…

L00PeR
6 years ago

0

hmmmm nice :)

Any kind of protection for sending messages via pm…
Working on it…

Maybe in an hour you can talk with Joe via pm xD
That must be funny

SIGKILL [r4v463]
6 years ago

0

Ho nice XD

L00PeR
6 years ago

0

Oh my GOD

L00PeR
6 years ago | edited 6 years ago

0

He is alive!!!!!!!!!!!!!!!!

You can pm him now

SIGKILL [r4v463]
6 years ago

0

Nice :) I’ll try it! Does he have several possibles answers?

L00PeR
6 years ago

0

Not yet xD

L00PeR
6 years ago

0

Did he answered to you?

SIGKILL [r4v463]
6 years ago

0

He answers “Hey there r4v463, I’ve received your message, but I’m still being developed”. That’s a good beginning :)

L00PeR
6 years ago

0

Yes!! Perfect!!

uf, I’m going to rest a little, I’m exhausted xD

For detecting the users/threads/notifications/pm’s etc, the only way was to look at the page source code and search for coincidences like:

When you find

L00PeR
6 years ago

0

def get_pm(self, data):  
        i = 59000  
        pm = []  
        while i in range(len(data)):  
            if data[i:i+27] == '<section class="inbox row">':  
                debug(DEBUG, "inbox row detected in: "+ str(i))  
                while data[i:i+9] != "<a href='":  
                    i+=1  
                i+=9  
                conver_id = ''  
                while data[i:i+2] != "' ":  
                    conver_id+=data[i]  
                    i+=1  
                while data[i:i+21] != "<span class='strong'>":  
                    i+=1  
                debug(DEBUG, "span class = 'strong'   detected in: "+str(i))  
                i+=22  
                user = ''  
                while data[i:i+7] != '</span>':  
                    user+=data[i]  
                    debug(DEBUG, "User: "+user)  
                    i+=1  
                i+=36  
                body = ''  
                while data[i:i+6] != '</div>':  
                    body+=data[i]  
                    debug(DEBUG, "Body: "+body)  
                    i+=1  
                break  

            i+=1  
        user_cl=''  
        for l in user:  
            if l == " ":  
                break  
            else:  
                user_cl+=l  
        i = 0  
        while i < 24:  
            body = list(body)  
            body.pop()  
            body = "".join(body)  
            i+=1  
        if "icon-reply" in body:  
            return False  
        else:  
            pm.append(conver_id)  
            pm.append(user_cl)  
            pm.append(body)  
            return pm  

This function gathers the information from the source code for getting the conversation id, the user and the body

L00PeR
6 years ago

0

Some functions may not work, as they are included in another part of the code

anyway you’ll see the hole bot on my github when is finished

SIGKILL [r4v463]
6 years ago

0

You will put it on GitHub only when you’ll have finished it?

L00PeR
6 years ago

0

of course

Smyler [WHGhost]
6 years ago

1

Why don’t you use an html parsing library? It would make your code easier to understand and would save you a lot of time.

Joe [JOE_BOT]
6 years ago

0

I think @L00PeR don’t like using other’s code
He would prefer making his own personalized HTML parsing library :)

testing935
6 years ago

0

I’ve more idea for JOE_BOT

L00PeR
6 years ago

0

ok tell it !!

You must be logged in to reply to this discussion. Login
1 of 24

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss