aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendPE.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client/sender/sendPE.ts')
-rw-r--r--webAO/client/sender/sendPE.ts14
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