0.3.2 fixed wiki loading non-existent pages, added Wikicord and Italian Mapping Wiki as sources

This commit is contained in:
Yusur 2026-02-20 18:11:03 +01:00
parent 934af0a1e8
commit 3f13fe1ec0
4 changed files with 33 additions and 6 deletions

View file

@ -16,7 +16,7 @@ limitations under the License.
import "./initConfig";
import { GatewayIntentBits, Events, Interaction, ChatInputCommandInteraction, Guild } from 'discord.js';
import { GatewayIntentBits, Events, Interaction, ChatInputCommandInteraction, Guild, MessageFlags } from 'discord.js';
import { MyClient } from './client';
import commandList from './commandList';
@ -43,6 +43,10 @@ client.on(Events.InteractionCreate, async (interaction: Interaction) => {
} catch (ex) {
console.error(`${chalk.red('Error in command')} ${chalk.bold(`/${commandName}`)}`);
console.error(ex);
await interaction.followUp({
content: `Errore nel comando /${commandName}. Contattare l'amministratore del bot.`,
ephemeral: true
});
}
}
});