forked from BigMichi1/IdleCodeRedeemer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.ts
More file actions
81 lines (77 loc) · 2.62 KB
/
help.ts
File metadata and controls
81 lines (77 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import {
SlashCommandBuilder,
ChatInputCommandInteraction,
EmbedBuilder,
MessageFlags,
} from 'discord.js';
export const data = new SlashCommandBuilder()
.setName('help')
.setDescription('Display help information about the bot');
export async function execute(interaction: ChatInputCommandInteraction) {
try {
await interaction.deferReply({ flags: MessageFlags.Ephemeral });
const embed = new EmbedBuilder()
.setColor(0x0099ff)
.setTitle('📖 Idle Code Redeemer Bot - Help')
.setDescription('Automated code detection and redemption for Idle Champions')
.addFields(
{
name: '⚙️ Setup',
value:
'`/setup user_id:<id> user_hash:<hash>`\nSave your Idle Champions credentials securely.',
inline: false,
},
{
name: '🎁 Redeem Code',
value: '`/redeem code:<code>`\nManually redeem a code.',
inline: false,
},
{
name: '📦 Check Inventory',
value: '`/inventory`\nView your chests, hero unlocks, and contracts.',
inline: false,
},
{
name: '🎲 Open Chests',
value: '`/open chest_type:<type> count:<count>`\nOpen chests in bulk.',
inline: false,
},
{
name: '⚒️ Blacksmith',
value:
'`/blacksmith contract_type:<type> hero_id:<id> count:<count>`\nUpgrade your heroes using contracts.',
inline: false,
}
)
.addFields(
{
name: '🤖 Automatic Code Detection',
value:
'The bot automatically scans the #combinations channel for new codes and redeems them for you (if you have set up credentials).',
inline: false,
},
{
name: '🔐 Privacy & Security',
value:
'Your credentials are stored securely in a local database and are never shared or transmitted except to the official Idle Champions API.',
inline: false,
},
{
name: '📚 Getting Started',
value:
'1. Use `/setup` to save your credentials\n2. The bot will automatically redeem codes found in the channel\n3. Use other commands to manage your inventory',
inline: false,
}
)
.setFooter({
text: 'For more help, visit https://discord.gg/idlechampions',
})
.setTimestamp();
await interaction.editReply({ embeds: [embed] });
} catch (error) {
console.error('[HELP COMMAND] Error:', error);
await interaction.editReply({
content: '❌ An error occurred while displaying help.',
});
}
}