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 2016-09-04 02:54:17, last edited by Vinyl Melody (2016-09-04 02:56:32)

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

[Question] Is it possible to make a pm command?

Im just wondering if that's possible.
I'd try to make something cool out of it.


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

#2 2016-09-04 02:54:50

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Question] Is it possible to make a pm command?

can you be more descriptive as to what the msg command does?

Offline

#3 2016-09-04 02:56:53

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

Re: [Question] Is it possible to make a pm command?

Whoops, I made a mistake. I ment pm command.
Srry >~<


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

#4 2016-09-04 02:58:17

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Question] Is it possible to make a pm command?

can you be more descriptive as to what the pm command does?

I believe /pm <user> <message> already exists. Do you want to receive commands via PM? Do you want to send PMs to other people from a command? Both doable.

Offline

#5 2016-09-04 03:01:32, last edited by Vinyl Melody (2016-09-04 03:12:23)

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

Re: [Question] Is it possible to make a pm command?

Using PM to send commands

That's the thing that I want to know if possible.
That's the thing that I want to add to the thing to do the thing


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

#6 2016-09-04 03:16:12

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Question] Is it possible to make a pm command?

Yep. I didn't see anything useful in the docs, so I threw a quick program together to see what happens when I send a PM, and get a response.

Xu8gp7e.png
It appears m.Type "write" and m.GetString(1) will suffice. It's just like the "say", in a way, except there's no reliable medium to send PM's so you might need to check to make sure it fits the proper format if you're checking for usernames.

Offline

#7 2016-09-04 03:58:36

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Question] Is it possible to make a pm command?

hummerz5 wrote:

I didn't see anything useful in the docs

o0ZMcsn.png

https://github.com/Tunous/EverybodyEdit … l#rm-write
._.???????


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#8 2016-09-04 04:06:58

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Question] Is it possible to make a pm command?

That said nothing of private messages, even going so far as to say 'non-player' so I couldn't rely on it

Offline

#9 2016-09-04 04:33:09

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Question] Is it possible to make a pm command?

well maybe if thanel did more than just (system messages, etc) and actually included it, there wouldnt be a problem


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Wooted by:

#10 2016-09-04 06:43:51, last edited by Vinyl Melody (2016-09-04 06:48:56)

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

Re: [Question] Is it possible to make a pm command?

I made a copier. But I still need to do some magical stuffs to get the player who pm's the bot.
Here's how I did it.

case "write":
					{
						string title = m.GetString(0);
						string text = m.GetString(1);
						if(title.Contains("> you"))
						{
							say(text);
						}
					}
					break;

Edit: I figured it out. I'm closing the thread now //forums.everybodyedits.com/img/smilies/smile
Here's the full code if anyone wants it:

Hidden text

To make it more comfortable for you, use another account as a bot.


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

Vinyl Melody1472967831621898

Board footer

Powered by FluxBB

[ Started around 1732234900.0026 - Generated in 0.046 seconds, 12 queries executed - Memory usage: 1.49 MiB (Peak: 1.65 MiB) ]