mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-07-09 14:35:08 +00:00
Add database
This commit is contained in:
9
client/data/deleteSound.ts
Normal file
9
client/data/deleteSound.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { database } from "../database";
|
||||
|
||||
export function DeleteSoundFromDatabase(
|
||||
fileName: string
|
||||
) {
|
||||
database.serialize(async () => {
|
||||
await database.run('DELETE FROM sounds WHERE name = ?', [fileName]);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user