Skip to content

Commit

Permalink
Add new achievements, re-enable grant.
Browse files Browse the repository at this point in the history
  • Loading branch information
RoarkGit committed Jul 18, 2023
1 parent 2d981a8 commit 3491cb3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
7 changes: 1 addition & 6 deletions src/commands/grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ export const grant: Command = {
if (interaction.guild === null) return
const guild = interaction.guild
const member = await guild.members.fetch(interaction.user.id)

await interaction.reply({ content: 'This is temporarily disabled until 6.45 achievement IDs are available and can be included here.', ephemeral: true })
return

/*

// Check if user recently ran command.
if (strago.grantSpamSet.has(member.id)) {
await interaction.reply({ content: 'You\'re doing that too quickly, wait at least ten minutes and try again.', ephemeral: true })
Expand Down Expand Up @@ -122,7 +118,6 @@ export const grant: Command = {
await channel.send(`<:academyCool:926176707302535188> ${member.toString()} has ascended to the status of ${role}! <:academyCool:926176707302535188>`)
}
}
*/
} catch (error) {
strago.logger.error('Failed to grant roles', error)
await interaction.editReply('I encountered an error trying to retrieve your achievements.\n' +
Expand Down
42 changes: 23 additions & 19 deletions src/data/achievementData.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,33 @@
"2733": "Mightier Than The White",
"2734": "Mightier Than The Vermilion",
"2735": "Mightier Than The Azure",
"AAAA": "Mightier Than Titania",
"BBBB": "Mightier Than Innocence",
"CCCC": "Mightier Than Hades",
"DDDD": "Mightier Than Ruby Weapon",
"EEEE": "Mightier Than Varis",
"FFFF": "Mightier Than Elidibus",
"GGGG": "Mightier Than Emerald Weapon",
"HHHH": "Mightier Than Diamond Weapon",
"IIII": "The More You Know IX",
"JJJJ": "Carnivale Achievement Placeholder",
"KKKK": "Jack of All Trades V",
"XXXX": "Omega + Eden Placeholder"
"2739": "Omega Blue",
"3320": "Mightier Than The Monarch",
"3321": "Mightier Than Perfection",
"3322": "Mightier Than The Underworld",
"3323": "Mightier Than Ruby",
"3325": "Mightier Than Emerald",
"3326": "Mightier Than Diamond",
"3317": "The More You Know IX",
"3318": "All That Glitters Is Blue",
"3319": "Jack of All Trades V",
"3330": "Bluetopia"
},
"roles": [
{
"name": "Blue Legend",
"required": ["2209", "2210", "2211", "2449", "2450", "2454", "2455", "2456", "2457", "2458", "2459", "2460", "2464", "2465", "2466", "2467", "2468", "2469", "2470", "2476", "2726", "2727", "2728", "2729", "2730", "2731", "2732", "2733", "2734", "2735", "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "XXXX"],
"required": ["2209", "2210", "2211", "2449", "2450", "2454", "2455", "2456", "2457", "2458", "2459", "2460", "2464", "2465", "2466", "2467", "2468", "2469", "2470", "2476", "2727", "2729", "2730", "2731", "2732", "2733", "2734", "2735", "2739", "3320", "3321", "3322", "3323", "3325", "3326", "3317", "3318", "3319", "3330"],
"blockedBy": []
},
{
"name": "Blue Explorer Placeholder",
"required": ["KKKK"],
"name": "Blueblazer",
"required": ["3319"],
"blockedBy": ["Blue Legend"]
},
{
"name": "Blue Ranger",
"required": ["2728"],
"blockedBy": ["Blue Legend", "Blue Explorer Placeholder"]
"blockedBy": ["Blue Legend", "Blueblazer"]
},
{
"name": "Blue Luminary",
Expand All @@ -82,7 +81,7 @@
},
{
"name": "Mightier Than The Shadows",
"required": ["AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH"],
"required": ["3320", "3321", "3322", "3323", "3325", "3326"],
"blockedBy": ["Blue Legend"]
},
{
Expand All @@ -91,8 +90,13 @@
"blockedBy": ["Blue Legend"]
},
{
"name": "Mount Owner Placeholder",
"required": ["XXXX"],
"name": "Omega Blue",
"required": ["2739"],
"blockedBy": ["Blue Legend"]
},
{
"name": "Bluetopia",
"required": ["3330"],
"blockedBy": ["Blue Legend"]
}
]
Expand Down

0 comments on commit 3491cb3

Please sign in to comment.