/* * Vencord, a Discord client mod * Copyright (c) 2024 Vendicated and contributors *…
- User
/*
- Vencord, a Discord client mod
- Copyright (c) 2024 Vendicated and contributors
- SPDX-License-Identifier: GPL-3.0-or-later */
import { addPreEditListener, addPreSendListener, MessageObject, removePreEditListener, removePreSendListener } from "@api/MessageEvents"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types";
const charMap: Record<string, string> = { a: "meow\u200B", b: "meow\u200Cnya", c: "purr\u200D", d: "mrow\u200B", e: "nyan\u200C", f: "hiss\u200D", g: "mew\u200B", h: "nya\u200C", i: "miao\u200D", j: "nyaa\u200B", k: "mrrreow\u200Cmeow", l: "purrr\u200D", m: "miaow\u200B", n: "nyan\u200Cnyan", o: "meoww\u200D", p: "paw\u200B", q: "mrrp\u200C", r: "meowers\u200D", s: "sss\u200B", t: "pssss\u200C", u: "uwu\u200D", v: "nyaaa\u200B", w: "whisker\u200C", x: "mrrrow\u200D", y: "meowowo\u200B", z: "zzz\u200C" };
export default definePlugin({ name: "Meowspeak", description: "Translates your messages to catspeak! Mrrp mrrp nyaaa :3", authors: [Devs.Ven], dependencies: ["MessageEventsAPI"],
replacer(match: string) { return charMap[match.toLowerCase()] || match; }, onSend(msg: MessageObject) { msg.content = msg.content.replace(/[a-z]/gi, this.replacer); }, start() { this.preSend = addPreSendListener((_, msg) => this.onSend(msg)); this.preEdit = addPreEditListener((_cid, _mid, msg) => this.onSend(msg) ); }, stop() { removePreSendListener(this.preSend); removePreEditListener(this.preEdit); },});
Just think of something, give me a way to translate messages sent by other users, that are "encrypted" by this plugin. Dont just use console logging.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.