forked from oldschoolgg/oldschoolbot
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ironmode not yet working * ironmode->ironman, reset mess fix, data schema unfixed * added ironman to userschema * missed ironmode->ironman * extra line * missed a tab * Linted * grammar changes * Requested changes * lint * added QP reset lmk if you want me to clean up the mess of commits. atm to tired to care * Grammar changes & Caps Fixes grammar but now fails during swap * rename Ironman -> isIronman/ironman * change warning msg, dont sync * add ironCantUser inhibitor * add ironman icon, fix incorrect casing * do the resetting in a single call * fix up daily a bit * fix grammar * use extendable for minion name everywhere Co-authored-by: gc <gc@users.noreply.github.com>
- Loading branch information
1 parent
9bacc99
commit fdf27b6
Showing
18 changed files
with
182 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Inhibitor, KlasaMessage, Command } from 'klasa'; | ||
import { UserSettings } from '../lib/UserSettings'; | ||
|
||
export default class extends Inhibitor { | ||
public async run(msg: KlasaMessage, command: Command) { | ||
if (command.ironCantUse && msg.author.settings.get(UserSettings.Minion.Ironman)) { | ||
throw `Ironman players can't use this command.`; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.