summaryrefslogtreecommitdiffstats
path: root/src/plugin.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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