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.
Well, I kinda feel awful after realizing this after such a long time, but how do you get private messages and how do you distinguish them from normal chat messages? Is that even possible?
Also, if another person logged a bot in, will he be able to receive the message?
Offline
Normal messages will be like: name: message
Pms will be like: name > you: msg
Also there is a /r command that replays to latest pm
With boys you and the bot will get it. But since the bot is a... Bot, you will get it. And if u do not know how to pm I think you do it's /pm name message
You are welcome
F
Offline
Normal messages will be like: name: message
Pms will be like: name > you: msg
Also there is a /r command that replays to latest pm
With boys you and the bot will get it. But since the bot is a... Bot, you will get it. And if u do not know how to pm I think you do it's /pm name messageYou are welcome
That's just obvious things. I'm talking about bot programming. There's nobody to thank here. If you are trying to be helpful, then you just failed.
Offline
Pms are from case "write":
your m.GetString(0) = name > you
your m.GetString(1) = "some text"
Sample Text.
Doritos/Mountain Dew eater.
420 No scoping 69 scrubs per day
Always smoke weed everyday.
Known for: #getrekt Bot (possible revive with new stuff?)
Offline
Pms are from case "write":
your m.GetString(0) = name > you
your m.GetString(1) = "some text"
If I understand correctly, m.GetString(0) contains the person's name and the " > you". Is that right?
Also, do bots with a different username than the PMed one receive the message from the server?
Offline
darkblades wrote:Pms are from case "write":
your m.GetString(0) = name > you
your m.GetString(1) = "some text"If I understand correctly, m.GetString(0) contains the person's name and the " > you". Is that right?
Also, do bots with a different username than the PMed one receive the message from the server?
I don't think so, but if it does, it is ridiculous.
Offline
No, they don't.
And I usually use
if (e.GetString(0).Contains(" " + playerName + " "))
//...
Offline
Psychocrysma wrote:darkblades wrote:Pms are from case "write":
your m.GetString(0) = name > you
your m.GetString(1) = "some text"If I understand correctly, m.GetString(0) contains the person's name and the " > you". Is that right?
Also, do bots with a different username than the PMed one receive the message from the server?I don't think so, but if it does, it is ridiculous.
It does, it has both name and you or you and name. its just like *system, *magic
Sample Text.
Doritos/Mountain Dew eater.
420 No scoping 69 scrubs per day
Always smoke weed everyday.
Known for: #getrekt Bot (possible revive with new stuff?)
Offline
Well, I'll just try it.
Offline
If den3107 were to pm the bot the message "Hello", the bot will receive "* den3107 > you: Hello" through the write event type thingy.
Offline
case "write":
string playername = PlayerName(m);
break;
public string PlayerName(PlayerIOClient.Message e)
{
return e.GetString(0).Split(' ')[1];
}
Not sure if it works.
Offline
case "write": string playername = PlayerName(m); break; public string PlayerName(PlayerIOClient.Message e) { return e.GetString(0).Split(' ')[1]; }
Not sure if it works.
Try it out.
Though I think it should work.
Offline
[ Started around 1732287510.4373 - Generated in 2.240 seconds, 13 queries executed - Memory usage: 1.53 MiB (Peak: 1.7 MiB) ]