$pnick: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Daveoh (talk | contribs)
No edit summary
 
Daveoh (talk | contribs)
mNo edit summary
 
Line 5: Line 5:
== Example ==
== Example ==


  on *:TEXT:!playing:#:{
  [[on text|on *:TEXT:!playing:#:{]]
   if ($play(1)) {
   [[if]] ([[$play|$play(1)]]) {
     msg # I am currently playing $play(1).fname to $pnick $+ .
     [[msg]] [[$chan (remote)|#]] I am currently playing $play(1).fname to $pnick [[DollarPlus|$+]] .
   }
   }
  }
  }

Latest revision as of 09:30, 19 April 2008

Returns the nick/channel to which you are currently playing a text file to.

$pnick
  • This function has no parameters.

Example

on *:TEXT:!playing:#:{
  if ($play(1)) {
    msg # I am currently playing $play(1).fname to $pnick $+ .
  }
}

Messages the filename and target of the play queue.

See Also

  • /play - plays text files to users or channels
  • $play - returns information about the play queue