mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-05-06 13:38:04 +03:00
extensions
This commit is contained in:
parent
31847a165c
commit
8c3517a8ac
28
README.md
28
README.md
@ -20,6 +20,34 @@ cargo build # build
|
|||||||
cargo run # run
|
cargo run # run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## extensions
|
||||||
|
|
||||||
|
### colored usernames
|
||||||
|
|
||||||
|
#### bRAC
|
||||||
|
|
||||||
|
regex - `\[(.*?)\] \uB9AC\u3E70<(.*?)> (.*)` \
|
||||||
|
color - green \
|
||||||
|
example - `[date] 리㹰<nick> text`
|
||||||
|
|
||||||
|
#### CRAB
|
||||||
|
|
||||||
|
regex - `\[(.*?)\] \u2550\u2550\u2550<(.*?)> (.*)` \
|
||||||
|
color - light red \
|
||||||
|
example - `[date] ═══<nick> text`
|
||||||
|
|
||||||
|
#### Mefedroniy
|
||||||
|
|
||||||
|
regex - `\[(.*?)\] (.*?): (.*)` \
|
||||||
|
color - light magenta \
|
||||||
|
example - `[date] nick: text`
|
||||||
|
|
||||||
|
#### clRAC
|
||||||
|
|
||||||
|
regex - `\[(.*?)\] <(.*?)> (.*)` \
|
||||||
|
color - cyan \
|
||||||
|
example - `[date] <nick> text`
|
||||||
|
|
||||||
## see also
|
## see also
|
||||||
|
|
||||||
- [CRAB - client & server for RAC](https://gitea.bedohswe.eu.org/pixtaded/crab)
|
- [CRAB - client & server for RAC](https://gitea.bedohswe.eu.org/pixtaded/crab)
|
||||||
|
@ -9,7 +9,7 @@ use termion::{event::Key, input::TermRead, raw::IntoRawMode};
|
|||||||
|
|
||||||
const MAX_MESSAGES: usize = 100;
|
const MAX_MESSAGES: usize = 100;
|
||||||
const DEFAULT_HOST: &str = "meex.lol:11234";
|
const DEFAULT_HOST: &str = "meex.lol:11234";
|
||||||
const MAGIC_KEY: &str = "리㹰";
|
const MAGIC_KEY: &str = "\u{B9AC}\u{3E70}";
|
||||||
|
|
||||||
fn send_message(host: &str, message: &str) -> Result<(), Box<dyn Error>> {
|
fn send_message(host: &str, message: &str) -> Result<(), Box<dyn Error>> {
|
||||||
let mut stream = TcpStream::connect(host)?;
|
let mut stream = TcpStream::connect(host)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user