MCPcopy Create free account
hub / github.com/Xchristech2/Zenitsu-Bot / normalizeType

Function normalizeType

commands/anime.js:10–15  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

8const ANIMU_BASE = 'https://api.some-random-api.com/animu';
9
10function normalizeType(input) {
11 const lower = (input || '').toLowerCase();
12 if (lower === 'facepalm' || lower === 'face_palm') return 'face-palm';
13 if (lower === 'quote' || lower === 'animu-quote' || lower === 'animuquote') return 'quote';
14 return lower;
15}
16
17async function sendAnimu(sock, chatId, message, type) {
18 const endpoint = `${ANIMU_BASE}/${type}`;

Callers 1

animeCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected