OH GOD STOP

This commit is contained in:
Skye 2023-03-11 11:31:18 +09:00
parent b9826bcda7
commit f9a565d172
Signed by: me
GPG key ID: 0104BC05F41B77B8

View file

@ -85,7 +85,7 @@ client.on("messageCreate", async (message) => {
return { role: "assistant", content: msg.content }; return { role: "assistant", content: msg.content };
} }
let username = msg.member?.displayName ?? msg.author.username; let username = msg.member?.displayName ?? msg.author.username;
if (username.includes("skyevg") && msg.author.id != "1038096782963507210") if (username.toLowerCase().includes("skyevg") && msg.author.id != "1038096782963507210")
username = msg.author.username; // no impersonating :) username = msg.author.username; // no impersonating :)
return { return {
role: "user", role: "user",