breaks
This commit is contained in:
@@ -7,8 +7,7 @@ module.exports = {
|
|||||||
.setDescription('[WIP] Calculate war payout based on participation')
|
.setDescription('[WIP] Calculate war payout based on participation')
|
||||||
.addIntegerOption(option =>
|
.addIntegerOption(option =>
|
||||||
option.setName('total')
|
option.setName('total')
|
||||||
.setDescription('Full war earnings total before cuts'))
|
.setDescription('Full war earnings total before cuts')),
|
||||||
.setRequired(true),
|
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
const total = interaction.options.getInteger('total');
|
const total = interaction.options.getInteger('total');
|
||||||
const lastWarRaw = await torn.api('https://api.torn.com/v2/faction/rankedwars?offset=0&limit=1&sort=DESC');
|
const lastWarRaw = await torn.api('https://api.torn.com/v2/faction/rankedwars?offset=0&limit=1&sort=DESC');
|
||||||
|
|||||||
Reference in New Issue
Block a user