3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-28 14:59:56 +01:00
pbot/lib/PBot/Core
Pragmatic Software 001f2024c4
Factoids: add default value modifier
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
2024-11-27 12:17:45 -08:00
..
Commands Factoids: fact no longer adds ref channel to output 2024-11-21 20:21:14 -08:00
Factoids Factoids: add default value modifier 2024-11-27 12:17:45 -08:00
Handlers Multiple bugfixes 2024-04-07 20:55:04 -07:00
IRC Multiple bugfixes 2024-04-07 20:55:04 -07:00
MessageHistory Multiple bugfixes 2024-04-07 20:55:04 -07:00
Storage Fix some inconsistent arguments 2023-04-17 10:33:02 -07:00
Utils Fix some inconsistent arguments 2023-04-17 10:33:02 -07:00
AntiFlood.pm AntiFlood: add some missing nickserv account case normalization 2024-09-28 12:19:37 -07:00
AntiSpam.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Applets.pm Plugin/Date: use existing context when launching date applet 2024-11-05 23:57:48 -08:00
BanList.pm Refactor ban/unmute commands 2023-05-04 16:03:24 -07:00
BlackList.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Capabilities.pm Plugin/ActionTrigger: handle QUIT triggers per-channel 2023-07-19 00:23:54 -07:00
Channels.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
ChanOps.pm Multiple bugfixes 2024-04-07 20:55:04 -07:00
Class.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Commands.pm Factoids: require locked to be exactly 1 to invoke commands with required_caps 2024-11-07 01:45:15 -08:00
EventDispatcher.pm EventQueue: minor whitespace correction 2023-11-14 10:44:43 -08:00
EventQueue.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Factoids.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Functions.pm Functions: fix help function signature 2024-05-09 16:10:06 -07:00
Handlers.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
IgnoreList.pm Core/IgnoreList: allow specifying nickname as channel argument to ignore private messages 2024-10-15 20:05:24 -07:00
Interpreter.pm Interpreter: improve processing of embedded and split commands 2024-11-21 20:31:28 -08:00
IRC.pm Gate message-tags debug message with irc.debug_tags 2023-01-28 11:48:29 -08:00
IRCHandlers.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
LagChecker.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Logger.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
MessageHistory.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
NickList.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Plugins.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
ProcessManager.pm Fix white-space handling; add suppress-no-output 2024-11-03 19:26:56 -08:00
Refresher.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Registerable.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Registry.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
SelectHandler.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
StdinReader.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Updater.pm Update core to use subroutine signatures 2023-04-13 21:04:12 -07:00
Users.pm Store user passwords as salted hash digests 2024-06-22 22:38:15 -07:00
WebPaste.pm WebPaste: sprunge.us dead 2024-09-19 13:56:23 -07:00