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

Method setBroadcast

src/database/sqlite.ts:231–233  ·  view source on GitHub ↗
(msg?: string)

Source from the content-addressed store, hash-verified

229 }
230
231 async setBroadcast(msg?: string) {
232 this.connection.prepare("UPDATE settings SET broadcast = ? WHERE id = 1").run(msg ?? null);
233 }
234
235 async getBroadcast() {
236 const result = this.connection.prepare("SELECT broadcast FROM settings WHERE id = 1").get() as {

Callers 1

runMethod · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected