diff options
| author | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-08 22:20:32 -0400 |
|---|---|---|
| committer | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-08 22:20:32 -0400 |
| commit | 776fe2f4241a67be354908df546f300f413a7d42 (patch) | |
| tree | deb962d3fa12966f0f7a29c9ed1784b3c83b5e40 /webAO/client/sender/sendPE.ts | |
| parent | 23d4ef48f894adf601039fe574a0e7dfe918a105 (diff) | |
I'm so sorry
Diffstat (limited to 'webAO/client/sender/sendPE.ts')
| -rw-r--r-- | webAO/client/sender/sendPE.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/webAO/client/sender/sendPE.ts b/webAO/client/sender/sendPE.ts new file mode 100644 index 0000000..984fc4d --- /dev/null +++ b/webAO/client/sender/sendPE.ts @@ -0,0 +1,14 @@ +import { client } from "../../client"; +import { escapeChat } from "../../encoding"; + +/** + * Sends add evidence command. + * @param {string} evidence name + * @param {string} evidence description + * @param {string} evidence image filename + */ +export const sendPE = (name: string, desc: string, img: string) => { + client.sender.sendServer( + `PE#${escapeChat(name)}#${escapeChat(desc)}#${escapeChat(img)}#%` + ); +}
\ No newline at end of file |
