|
|
@ -4,12 +4,14 @@ import {UEMEloBot} from "../bot"; |
|
|
|
|
|
|
|
|
|
|
|
class Update extends Command { |
|
|
|
class Update extends Command { |
|
|
|
constructor() { |
|
|
|
constructor() { |
|
|
|
super("update", "Ränge jetzt aktualisieren (passiert automatisch alle 30min)"); |
|
|
|
super("update", "Ränge jetzt aktualisieren (passiert automatisch alle 20min)"); |
|
|
|
} |
|
|
|
} |
|
|
|
async execute(interaction: Interaction) { |
|
|
|
async execute(interaction: Interaction) { |
|
|
|
if (!interaction.isChatInputCommand()) |
|
|
|
if (!interaction.isChatInputCommand()) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("Update command used"); |
|
|
|
|
|
|
|
|
|
|
|
await interaction.deferReply({ephemeral: true}); |
|
|
|
await interaction.deferReply({ephemeral: true}); |
|
|
|
|
|
|
|
|
|
|
|
let client = interaction.client as UEMEloBot; |
|
|
|
let client = interaction.client as UEMEloBot; |
|
|
|