MCPcopy
hub / github.com/rohitdhas/shittier / getRandomComment

Function getRandomComment

src/utils/cst-formatter/comments.ts:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2function insertRandomCommentsRecursive(_node: any) {}
3
4function getRandomComment() {
5 // TODO: add sarcastic comments
6 const comments: string[] = [];
7
8 const randomIndex = Math.floor(Math.random() * comments.length);
9 return comments[randomIndex];
10}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected