aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugin.rs
Commit message (Collapse)AuthorAgeFilesLines
* Plugins: Replace IrcClient with a traitJokler2018-06-301-4/+6
| | | | | This is to make it simpler to replace the client in the future.
* Fix clippy warningsJokler2018-06-161-1/+1
|
* Add usefulness rating function to url titlesJokler2018-04-071-1/+1
|
* Use a prefix from the config instead of the nickJokler2018-03-191-24/+13
|
* Make tells caase insensitive and only check JOINsJokler2018-03-031-1/+1
|
* Use Error & ErrorKind pair instead of simple enumsJokler2018-03-021-9/+12
| | | | | | | | | | | | Each plugin should define its own errors with a respective variant in the main ErrorKind of frippy. A new procedural macro was added to reduce the boilerplate required for new error system. It can be used by deriving "Error" and adding a name for the Error via the "error" attribute. So far non of the plugins except for Url and Factoids use their own errors yet.
* Run rustfmt and clippyJokler2018-02-241-1/+1
|
* Run latest rustfmtJokler2018-02-121-12/+6
|
* Improve documentationJokler2018-02-121-7/+15
|
* Replace is_allowed with a single-threaded execute functionJokler2018-02-121-2/+8
| | | | The old execute got renamed to exeute_threaded.
* Upgrade dependenciesJokler2018-02-101-5/+5
|
* Add evaluate function to pluginsJokler2018-02-101-0/+2
| | | | This allows plugins to be used in combination with each other.
* Adjust documentationJokler2017-12-151-1/+3
|
* Remove needless allocation & fix typoJokler2017-12-111-1/+1
|
* Rename plugin_derive to frippy_deriveJokler2017-11-301-1/+1
|
* Let users of the library define their own pluginsJokler2017-11-281-96/+24
| | | | | | | This means that: - run() is now part of a Bot struct - Plugins the bot should use have to be added before calling run() - The Plugin trait and all of the included plugins are now public
* Remove mutexes around pluginsJokler2017-11-161-19/+9
| | | | | | | Mutexes are supposed to only mark critical sections so locking the entire plugin is too general. Any plugins that need mutable data should use mutexes internally instead.
* Add debug loggingJokler2017-11-031-1/+10
| | | | | | The log level gets set to debug or info based on the build profile automatically now. Debug messages also print their target to the console.
* Move help into a PluginJokler2017-10-271-8/+0
|
* Refactor plugin managementJokler2017-10-271-0/+148
| | | | ThreadedPlugins should take care of anything Plugin related now.
* Create plugin_derive to replace the register_plugin macroJokler2017-10-111-24/+5
|
* Only expose the run functionJokler2017-10-111-2/+7
|
* Add command functionalityJokler2017-10-111-0/+2
|
* Add the Display trait to PluginsJokler2017-10-111-13/+10
|
* Initial bot sourceJokler2017-10-041-0/+35