Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Mar 17, 2024
1 parent 4d6f312 commit 16c2911
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mahoji/commands/rates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,13 @@ ${zygomiteFarmingSource
if (options.monster?.monster) {
const monster = killableMonsters.find(m => stringMatches(m.name, options.monster!.monster!.name));
if (!monster) {
return 'HUH?';
return 'Invalid monster.';
}

if (user.id !== '157797566833098752') {
return 'This command is currently disabled.';
}

let { timeToFinish } = monster;
// 10% for learning
timeToFinish = reduceNumByPercent(timeToFinish, 10);
Expand Down

0 comments on commit 16c2911

Please sign in to comment.