mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-28 14:59:56 +01:00
001f2024c4
Uses POSIX shell parameter expansion syntax. <pragma-> !factadd cookie /me gives a cookie to ${args:-nobody. What a shame}! <PBot> cookie added to the global channel. <pragma-> !cookie Bob * PBot gives a cookie to Bob! <pragma-> !cookie * PBot gives a cookie to nobody. What a shame! <pragma-> !factadd sum /call calc $arg[0]:-1 + $arg[1]:-2 <PBot> sum added to the global channel. <pragma-> !sum <PBot> 1 + 2 = 3 <pragma-> !sum 3 <PBot> 3 + 2 = 5 <pragma-> !sum 4 6 <PBot> 4 + 6 = 10 |
||
---|---|---|
.. | ||
Code.pm | ||
Data.pm | ||
Exporter.pm | ||
Interpreter.pm | ||
Modifiers.pm | ||
Selectors.pm | ||
Variables.pm |