Check messages aganist OpenAI moderation API
This commit is contained in:
parent
c18b8d83ef
commit
7411648d02
3 changed files with 39 additions and 3 deletions
|
@ -3,7 +3,7 @@ import { Collection, Message as DiscordMessage } from "discord.js";
|
|||
|
||||
import config from "./config.json";
|
||||
|
||||
function formatMessage(message: DiscordMessage): string {
|
||||
export function formatMessage(message: DiscordMessage): string {
|
||||
let rvalue: string = message.cleanContent;
|
||||
|
||||
for (const attachment of message.attachments) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue