mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-16 13:30:58 +01:00
doc/Factoids.md: very minor edits
This commit is contained in:
parent
88f1f6dadd
commit
c8cd831fe1
@ -17,12 +17,12 @@
|
|||||||
* [Using command-piping](#using-command-piping)
|
* [Using command-piping](#using-command-piping)
|
||||||
* [Improving SpongeBob Mock meme](#improving-spongebob-mock-meme)
|
* [Improving SpongeBob Mock meme](#improving-spongebob-mock-meme)
|
||||||
* [Special variables](#special-variables-1)
|
* [Special variables](#special-variables-1)
|
||||||
* [$nick](#nick)
|
|
||||||
* [$args](#args)
|
* [$args](#args)
|
||||||
* [$arg[n]](#argn)
|
* [$arg[n]](#argn)
|
||||||
* [$arg[n:m]](#argnm)
|
* [$arg[n:m]](#argnm)
|
||||||
* [$arglen](#arglen)
|
* [$arglen](#arglen)
|
||||||
* [$channel](#channel)
|
* [$channel](#channel)
|
||||||
|
* [$nick](#nick)
|
||||||
* [$randomnick](#randomnick)
|
* [$randomnick](#randomnick)
|
||||||
* [$0](#0)
|
* [$0](#0)
|
||||||
* [List variables](#list-variables)
|
* [List variables](#list-variables)
|
||||||
@ -174,7 +174,7 @@ the C programming language because why not?
|
|||||||
|
|
||||||
#### Setting a usage message
|
#### Setting a usage message
|
||||||
|
|
||||||
Suppose you want command to display a usage message if there are no arguments provided. You can use
|
Suppose you want the command to display a usage message if there are no arguments provided. You can use
|
||||||
the [`factset`](#factset) command to set the `usage` [factoid meta-data](#factoid-metadata).
|
the [`factset`](#factset) command to set the `usage` [factoid meta-data](#factoid-metadata).
|
||||||
|
|
||||||
<pragma-> !testargs
|
<pragma-> !testargs
|
||||||
@ -273,10 +273,7 @@ to strip the timestamp and the name, leaving only the message. `smr` stands for
|
|||||||
<PBot> gIrLs ArE dUmB!
|
<PBot> gIrLs ArE dUmB!
|
||||||
|
|
||||||
## Special variables
|
## Special variables
|
||||||
You can use the following variables in a factoid or as an argument to one.
|
You can use the following variables in a factoid or, in some cases, as an argument to one.
|
||||||
|
|
||||||
### $nick
|
|
||||||
`$nick` expands to the nick of the caller.
|
|
||||||
|
|
||||||
### $args
|
### $args
|
||||||
`$args` expands to any text following the keyword. If there is no text then it expands to the nick of the caller.
|
`$args` expands to any text following the keyword. If there is no text then it expands to the nick of the caller.
|
||||||
@ -293,6 +290,9 @@ You can use the following variables in a factoid or as an argument to one.
|
|||||||
### $channel
|
### $channel
|
||||||
`$channel` expands to the name of the channel in which the factoid is used.
|
`$channel` expands to the name of the channel in which the factoid is used.
|
||||||
|
|
||||||
|
### $nick
|
||||||
|
`$nick` expands to the nick of the caller.
|
||||||
|
|
||||||
### $randomnick
|
### $randomnick
|
||||||
`$randomnick` expands to a random nick from the channel in which the factoid is used. Filtered to nicks who have spoken in channel in the last two hours.
|
`$randomnick` expands to a random nick from the channel in which the factoid is used. Filtered to nicks who have spoken in channel in the last two hours.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user