All checks were successful
continuous-integration/drone/push Build is passing
# Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - Create a simple inventory list #97 ## Type of change Please delete options that are not relevant. - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. # Checklist - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/120 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
43 lines
No EOL
1.5 KiB
TypeScript
43 lines
No EOL
1.5 KiB
TypeScript
import { CoreClient } from "./client/client";
|
|
import { Environment } from "./constants/Environment";
|
|
|
|
// Global Command Imports
|
|
import About from "./commands/about";
|
|
import Drop from "./commands/drop";
|
|
import Gdrivesync from "./commands/gdrivesync";
|
|
import Inventory from "./commands/inventory";
|
|
import Resync from "./commands/resync";
|
|
|
|
// Test Command Imports
|
|
import Dropnumber from "./commands/stage/dropnumber";
|
|
import Droprarity from "./commands/stage/droprarity";
|
|
|
|
// Button Event Imports
|
|
import Claim from "./buttonEvents/Claim";
|
|
import InventoryButtonEvent from "./buttonEvents/Inventory";
|
|
import Reroll from "./buttonEvents/Reroll";
|
|
|
|
export default class Registry {
|
|
public static RegisterCommands() {
|
|
// Global Commands
|
|
CoreClient.RegisterCommand('about', new About());
|
|
CoreClient.RegisterCommand('drop', new Drop());
|
|
CoreClient.RegisterCommand('gdrivesync', new Gdrivesync());
|
|
CoreClient.RegisterCommand('inventory', new Inventory());
|
|
CoreClient.RegisterCommand('resync', new Resync());
|
|
|
|
// Test Commands
|
|
CoreClient.RegisterCommand('dropnumber', new Dropnumber(), Environment.Test);
|
|
CoreClient.RegisterCommand('droprarity', new Droprarity(), Environment.Test);
|
|
}
|
|
|
|
public static RegisterEvents() {
|
|
|
|
}
|
|
|
|
public static RegisterButtonEvents() {
|
|
CoreClient.RegisterButtonEvent('claim', new Claim());
|
|
CoreClient.RegisterButtonEvent('inventory', new InventoryButtonEvent);
|
|
CoreClient.RegisterButtonEvent('reroll', new Reroll());
|
|
}
|
|
} |