Skip to content

Conversation

@sjkd23
Copy link
Collaborator

@sjkd23 sjkd23 commented Sep 18, 2023

Added utilities and database folders which contain:

  • utilities:
    - cmdUtils (sets up and runs commands)
    - miscUtils (the general utils that were previously in the 'utils.ts' file)

  • database:
    - All database related files
    - DBUtils.ts
    - JeffreyDB.ts
    - JeffreyGacha.ts
    - DBMain.ts

  • constants:
    - buttonConstants.ts (button related constants)
    - miscConstants ( general constants, currently has number emojis and time_in_ms)

@sjkd23 sjkd23 changed the title utilities and database folders | File re-arrangement | index size trimming Organizational Folders | File re-arrangement | index size trimming Sep 18, 2023
@sjkd23 sjkd23 requested a review from ewang2002 September 18, 2023 14:03
if (commandName === CMD_LIST[i].info.name) {
CMD_LIST[i].run(interaction);
} else {
continue;
Copy link
Member

Choose a reason for hiding this comment

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

you don't need this

DM.addChoiceOptions();

const cmdInfo = CMD_LIST.map(cmd => cmd.info.toJSON());
await rest.put(
Copy link
Member

Choose a reason for hiding this comment

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

Think about making a similar function (or refactoring this one) to allow for deploying commands globally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants