diff --git a/src/controller/ConfigManager.ts b/src/controller/ConfigManager.ts index 71c63f0..cf5dc08 100644 --- a/src/controller/ConfigManager.ts +++ b/src/controller/ConfigManager.ts @@ -34,6 +34,8 @@ export default class ConfigManager { this.guildId = t.guildId if (!!t?.userManager) this.userManager = { ...this.userManager, ...t.userManager } - } catch (error) { } + } catch (error) { + console.log(error) + } } } \ No newline at end of file diff --git a/src/controller/EcoManager.ts b/src/controller/EcoManager.ts index 1bc59c5..b942afd 100644 --- a/src/controller/EcoManager.ts +++ b/src/controller/EcoManager.ts @@ -27,7 +27,9 @@ export default class EcoManager { if (status !== 200) return null return data - } catch (error) { } + } catch (error) { + console.log(error) + } return null } public async Message(message: string, from: string, to: string) { @@ -48,7 +50,9 @@ export default class EcoManager { if (status !== 200) return null return data - } catch (error) { } + } catch (error) { + console.log(error) + } return null } } \ No newline at end of file diff --git a/src/controller/UserManager.ts b/src/controller/UserManager.ts index 1ad0663..91fc8d9 100644 --- a/src/controller/UserManager.ts +++ b/src/controller/UserManager.ts @@ -22,7 +22,9 @@ export default class UserManager { this.config.userManager.users = data return true - } catch (error) { } + } catch (error) { + console.log(error) + } return false } } \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 9ea2a7c..03ceda9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -69,11 +69,14 @@ client.on(Events.InteractionCreate, async interaction => { await interaction.reply({ content: "Ошибка выполнения", ephemeral: true }) else if (interaction.replied || interaction.deferred) await interaction.editReply({ content: "Ошибка выполнения" }) + + console.log(error) } } else return } catch (error) { // console.log(error) + console.log(error) } });