aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendZZ.ts
blob: e9bd443c9224600a917bd70a23391bfdadf950b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { client, extrafeatures } from "../../client";

/**
 * Sends call mod command.
 * @param {string} message to mod
 */
export const sendZZ = (msg: string) => {
  if (extrafeatures.includes("modcall_reason")) {
    client.sender.sendServer(`ZZ#${msg}#%`);
  } else {
    client.sender.sendServer("ZZ#%");
  }
};