Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2018-07-02 22:59:02

Andymakeer
Member
From: Nine-tails Vale
Joined: 2016-05-29
Posts: 672

Can't get PM messages

Hi guys!

So, i was trying to get when the Bot receives or sends PM messages, but somehow the bot isn't working

here is the code part where the PM stuff is supposed to work:

else if (m.Type == "write")
            {
                Thread.Sleep(1500);
                Say("oh, got it");
            }

As you can see, its a simple check, it doesnt even has a break or anything, i was just trying to get it to work
I even added a Thread.Sleep to prevent con.Send("say", ...) of overloading.

Help? ;-;


F

Offline

#2 2018-07-02 23:03:02

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: Can't get PM messages

IIRC the new PM message type is 'pm', I think write is for notifications (citation needed)

Offline

Wooted by:

#3 2018-07-02 23:09:36

Andymakeer
Member
From: Nine-tails Vale
Joined: 2016-05-29
Posts: 672

Re: Can't get PM messages

thanks Luke!

Also, as you said, the pm m.type is missing on the EE protocol

;---;


F

Offline

Wooted by:

#4 2018-07-02 23:38:17, last edited by LukeM (2018-07-02 23:39:37)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: Can't get PM messages

I think a few other people (Capasha maybe) are trying to keep unofficial protocol documentations a up to date, so if you can't find something in the official one there's a good chance that it's in someone else's.

Edit: Found one: https://github.com/capasha/EverybodyEditsProtocoll

Offline

LukeM1530571097712539

Board footer

Powered by FluxBB

[ Started around 1733951288.404 - Generated in 0.027 seconds, 12 queries executed - Memory usage: 1.4 MiB (Peak: 1.5 MiB) ]