MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / lastText

Function lastText

test/bot-commands.test.ts:25–25  ·  view source on GitHub ↗
(sent: { text: string }[])

Source from the content-addressed store, hash-verified

23const allow = { telegram: { allowedUsers: ['u1'] } };
24const flush = () => new Promise(r => setTimeout(r, 0));
25const lastText = (sent: { text: string }[]) => sent[sent.length - 1]!.text;
26
27describe('bot command registry', () => {
28 it('parses /word args, case-insensitively, with /start aliasing /help', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected