Migration

This commit is contained in:
2026-05-14 21:33:18 +02:00
parent f56e6079e6
commit 4853da05a9
3 changed files with 25 additions and 1 deletions

View File

@@ -59,7 +59,10 @@ export const wordbyword: Module = ({ audio, commands, db, t, rootDir }) => {
currentWBW.indexOf(".") === -1 ? currentWBW : currentWBW.slice(currentWBW.lastIndexOf(".") + 2);
const voiceChannel = message.member?.voice.channel;
if (voiceChannel) await audio.speak(voiceChannel, toSay);
await db.run("update BotState set value=? where key='last_wbw'", [message.author.id]);
await db.run("insert or replace into BotState (key, value) values (?, ?)", [
"last_wbw",
message.author.id,
]);
}
});