Skip to content

Commit

Permalink
fix: prevent multiple reload timers in OverlayPage & add aghs + shard…
Browse files Browse the repository at this point in the history
… commands (#169)
  • Loading branch information
Geczy authored Jan 19, 2025
1 parent a27cbc3 commit 9aea227
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/components/Dashboard/CommandDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,38 @@ const CommandDetail = {
/>
),
},
[Settings.commandShard]: {
key: Settings.commandShard,
title: "Aghanim's Shard",
description:
"Provides information about the Aghanim's Shard upgrade for a hero.",
cmd: '!shard jug',
alias: [],
allowed: 'all',
response: (props: Record<string, any> = {}) => (
<TwitchChat
{...props}
command="!shard"
response="Juggernaut shard: Blade Fury · Increases Blade Fury radius, and slows enemies by 35%."
/>
),
},
[Settings.commandAghs]: {
key: Settings.commandAghs,
title: "Aghanim's Scepter",
description:
"Provides information about the Aghanim's Scepter upgrade for a hero.",
cmd: '!aghs jug',
alias: [],
allowed: 'all',
response: (props: Record<string, any> = {}) => (
<TwitchChat
{...props}
command="!aghs"
response="Juggernaut aghs: Swiftslash · Performs a short Omnislash for 1 seconds."
/>
),
},
}

export default CommandDetail
2 changes: 2 additions & 0 deletions src/lib/defaultSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export const defaultSettings = {
commandSpectators: true,
commandFacet: true,
commandInnate: true,
commandShard: true,
commandAghs: true,
commandWinProbability: true,
}
export type SettingKeys = keyof typeof defaultSettings
Expand Down
2 changes: 2 additions & 0 deletions src/lib/validations/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ const settingsSchema = {
commandSpectators: z.boolean(),
commandFacet: z.boolean(),
commandInnate: z.boolean(),
commandShard: z.boolean(),
commandAghs: z.boolean(),
commandWinProbability: z.boolean(),
}

Expand Down

1 comment on commit 9aea227

@vercel
Copy link

@vercel vercel bot commented on 9aea227 Jan 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.