Fix budget set function typo

This commit is contained in:
2026-01-19 15:04:53 +01:00
parent 53ac0f4b79
commit 52f12ffac7

View File

@@ -47,7 +47,7 @@ module.exports = {
case 'set':
console.log('budget command set');
let override = interaction.options.getBoolean('override') ?? false;
let budget = interaction.options.getB('amount').value;
let budget = interaction.options.get('amount').value;
db.prepare(`INSERT OR REPLACE INTO bot_config (id, weekly_budget) VALUES (1, ?)`).run(budget);
if (override) {
db.prepare(`