diff options
| author | Fuwn <[email protected]> | 2020-10-30 12:58:50 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2020-10-30 12:58:50 -0700 |
| commit | 3ca642734629b108ece241ea9644f5ed1ee339cb (patch) | |
| tree | 515fc5c33c62eb4ab970f3d3e5bb7f40ff417df1 /src/modules/plugins/macros.rs | |
| parent | chore: change cc env vars file type, (md -> txt) (diff) | |
| download | dep-core-next-3ca642734629b108ece241ea9644f5ed1ee339cb.tar.xz dep-core-next-3ca642734629b108ece241ea9644f5ed1ee339cb.zip | |
feat (desc)
feat:
- add `Procfile` and `app.json` to "prep" for heroku (probably not going to go to heroku though).
- implement a plugin system and enable `random_hi` plugin.
- move webserver to seperate location
Diffstat (limited to 'src/modules/plugins/macros.rs')
| -rw-r--r-- | src/modules/plugins/macros.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modules/plugins/macros.rs b/src/modules/plugins/macros.rs new file mode 100644 index 0000000..f28cf7c --- /dev/null +++ b/src/modules/plugins/macros.rs @@ -0,0 +1,11 @@ +#![macro_use] + +#[macro_export] +macro_rules! exec_on_message { + ([$ctx:expr, $message:expr], $($plugin:ident), *) => {{ + // use utils::config::get_pool; + // let pool = get_pool(&$ctx); + + $($plugin::on_message($ctx, /* &pool, */ $message);)* + }} +} |