Migration
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user