Commit Graph

19 Commits

Author SHA1 Message Date
MedzikUser 032ec88ed6
chore: add some comments in code
Moved `PluginsManager` and `PluginsManagerType` from `servers::plugin::manager` to the `servers::plugin` module.
Added some comments in code.
Implemented function `into()` to the `PluginsManager` struct.
2022-08-22 13:23:08 +02:00
MedzikUser 501cbc74b7
fix(clippy): change `< 1` to .is_empty()
Replaced `args.len() < 1` with `args.is_empty()`.
2022-08-20 15:01:48 +02:00
MedzikUser d15ec0c93e
feat(command): add /broadcast
The `/broadcast` command has been added, which can send a message to all connected clients.
2022-08-19 22:27:42 +02:00
MedzikUser 84eed33e24
docs: comment code 2022-08-12 23:12:29 +02:00
MedzikUser 25c2f0baa3
fix(id): fix add one to next id
- Fixed add one to next ID
- Added command /id
- Added `id` field to Client struct
2022-08-12 22:52:47 +02:00
MedzikUser d0120a0703
refactor: rewrite
- Better Client struct (TCP and WebSocket in one type)
- WebSocket is now not a proxy to tcp
- Use async-std instead a tokio
- Use Arc and Client type now have a Clone derive
- Add global CLIENTS list
2022-08-12 22:32:22 +02:00
MedzikUser 3fb0a1132a
chore: some changes (more in the commit description)
- added `/disconnect` commands
- moved logger init function to other file
- updated command description
- the `/help` command has been accelerated
- re-export `async_trait` so that it doesn't have to be added to dependencies in plugins
2022-07-29 21:55:21 +02:00
MedzikUser f08093ecc7
chore(tcp): use tcp from tokio instead of std 2022-07-01 21:32:20 +02:00
MedzikUser ec574f3268
feat(plugins): add `Result<()>` in `fn execute()` (Event and Command traits) 2022-06-23 11:07:42 +02:00
MedzikUser b9af11c34e
doc: update 2022-06-21 12:33:13 +02:00
MedzikUser 4f9baa4b76
feat(plugins-loader): improve a plugin loader 2022-06-20 23:22:45 +02:00
MedzikUser 51440c98f9
doc: update documentation 2022-06-17 13:43:23 +02:00
MedzikUser f0fd1b1d2a
add event manager 2022-06-16 19:31:09 +02:00
MedzikUser 01f6ed8ad8
`Client` change `async fn` to `fn`, because `async` is not used 2022-06-05 23:13:14 +02:00
MedzikUser 5fbb153f8e
comment code 2022-06-05 22:10:23 +02:00
MedzikUser 969be3498b
refactor code and add debug and trace logger 2022-06-05 16:08:13 +02:00
MedzikUser 3975102736
refactor code 2022-06-04 21:34:53 +02:00
MedzikUser 4f002bb322
add plugin, comment code and setup ci 2022-06-04 20:10:21 +02:00
MedzikUser a91b0cb788
initial commit 2022-06-04 13:58:21 +02:00