MCPcopy Create free account
hub / github.com/esmBot/esmBot / addCount

Method addCount

src/database/sqlite.ts:119–121  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

117 }
118
119 async addCount(command: string) {
120 this.connection.prepare("UPDATE counts SET count = count + 1 WHERE command = ?").run(command);
121 }
122
123 async getCounts(all?: boolean) {
124 const counts = this.connection.prepare("SELECT * FROM counts").all() as unknown as Count[];

Callers 2

messageCreate.tsFile · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected