Fix budget set function typo
This commit is contained in:
@@ -47,7 +47,7 @@ module.exports = {
|
|||||||
case 'set':
|
case 'set':
|
||||||
console.log('budget command set');
|
console.log('budget command set');
|
||||||
let override = interaction.options.getBoolean('override') ?? false;
|
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);
|
db.prepare(`INSERT OR REPLACE INTO bot_config (id, weekly_budget) VALUES (1, ?)`).run(budget);
|
||||||
if (override) {
|
if (override) {
|
||||||
db.prepare(`
|
db.prepare(`
|
||||||
|
|||||||
Reference in New Issue
Block a user