This module provides basic factoids support for WildPHP. It allows you to store small bits of information to recall later.
If your setup can run the main bot, it can run this module as well.
To install this module, we will use composer
:
composer require wildphp/module-factoids
That will install all required files for the module. In order to activate the module, add the following line to your modules array in config.neon
:
- WildPHP\Modules\Factoids\Factoids
The bot will run the module the next time it is started.
A target can be either a channel name or global
(for factoids which exist everywhere).
If no target is specified, most commands assume the current channel.
For standard users, the following commands are available:
lsfactoids ([target])
factoidinfo ([target]) [key]
Standard users may also invoke any factoid.
Authenticated users have access to the following commands:
addfactoid ([target]) [key] [value]
- Required permission:
addfactoid
- Required permission:
delfactoid ([target]) [key]
- Required permission:
delfactoid
- Required permission:
editfactoid ([target]) [key] [value]
- Required permission:
editfactoid
- Required permission:
movefactoid [key] ([source target]) [destination target]
- Required permission:
movefactoid
- Required permission:
renamefactoid ([target]) [key] [new key]
- Required permission:
renamefactoid
- Required permission:
Channel-bound factoids will always override global factoids of the same name.
The module will automatically save factoid state in JSON format, to a storage named factoids.dat
These factoids will be restored on the next startup.
This module is licensed under the MIT license. Please see LICENSE
to read it.