(msg?: string)
| 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 { |