1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Guest, PO has ceased our separate tiering and adopted Smogon tiers for SM. More information and updates here.

    Dismiss Notice

[Client Scripting] What's the command line to send a pm instead of a channel message?

Discussion in 'Server and Client Scripting' started by Sailor Mars, Jun 2, 2018.

  1. Sailor Mars

    Sailor Mars "The Bird of Hermes is my name..."

    Joined:
    Jul 30, 2014
    Messages:
    8
    Likes Received:
    0
    PO Trainer Name:
    Sailor Mars + others
    As opposed to pulling one of these maneuvers:
    client.network().sendChanMessage(channel, "message here")

    I imagine something along the lines of:
    client.network().sendPrivateMessage([user], "message here") but I'm not sure.

    Just wanted to get some input before I start experimenting and wreck my bot again. Per usual.
     
  2. Yttrium

    Yttrium Well-Known Member Developer Developer

    Joined:
    Sep 29, 2010
    Messages:
    615
    Likes Received:
    278
    PO Trainer Name:
    Yttrium
    You're looking for client.network().sendPM