Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed LMS simulation command #5985

Closed
wants to merge 5 commits into from
Closed

Conversation

I-am-TURBO
Copy link
Contributor

@I-am-TURBO I-am-TURBO commented Aug 4, 2024

Description:

doing simulation on bso sent minigame trips same as minigame command
SmartSelect_20240804_080923_Discord

Changes:

copied over osb's command
Screenshot_20240804_080907_Discord

Other checks:

  • I have tested all my changes thoroughly.

🚀 This description was created by Ellipsis for commit 04a4653

Summary:

Added LMS simulation command and integrated it into the existing LMS command, along with updating dependencies in package.json.

Key points:

  • Added lmsSimCommand function in src/lib/minions/functions/lmsSimCommand.ts to simulate LMS minigame.
  • Integrated lmsSimCommand into lmsCommand in src/mahoji/lib/abstracted_commands/lmsCommand.ts.
  • Updated package.json to include new dependencies node and nodejs.

Generated with ❤️ by ellipsis.dev

@github-actions github-actions bot added the BSO Bot School Old label Aug 4, 2024
ellipsis-dev[bot]

This comment was marked as outdated.

@I-am-TURBO
Copy link
Contributor Author

@ellipsis-dev

Copy link
Contributor

ellipsis-dev bot commented Aug 4, 2024

Sorry, I don't know how to help with that. If you tag me (@ellipsis-dev) in a comment, I can do one of these things (but not multiple at once):

  • review and summarize this pull request
  • make changes to this pull request
  • answer questions about this PR, or about the codebase in general
  • hide my old reviews on this PR (to reduce clutter)

I am able to see previous issue comments for context.

Copy link
Contributor

ellipsis-dev bot commented Aug 4, 2024

Code generation is not enabled for @I-am-TURBO in this repository because they haven't been added to the org and/or granted a seat.

@I-am-TURBO I-am-TURBO changed the title [BSO] fixed LMS simulation command fixed LMS simulation command Aug 4, 2024
@I-am-TURBO
Copy link
Contributor Author

@ellipsis-dev review and summerize

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 04a4653 in 40 seconds

More details
  • Looked at 248 lines of code in 3 files
  • Skipped 1 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_CHDKCu7AM3dCUU1J


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

package.json Outdated
"node-cron": "^3.0.3",
"node-fetch": "^2.6.7",
"nodejs": "^0.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

The dependency 'nodejs' is not a valid npm package and should be removed. It seems to be a mistake since 'node' is already included as a dependency.

Suggested change
"nodejs": "^0.0.0",

@@ -33,6 +35,13 @@ export async function lmsCommand(
**Total Matches:** ${stats.totalGames}`;
}

if (options.simulate) {
lmsSimCommand(globalClient.channels.cache.get(channelID.toString()), options.simulate.names);
Copy link
Contributor

Choose a reason for hiding this comment

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

The asynchronous function lmsSimCommand should be awaited to ensure all its operations complete before proceeding.

Suggested change
lmsSimCommand(globalClient.channels.cache.get(channelID.toString()), options.simulate.names);
await lmsSimCommand(globalClient.channels.cache.get(channelID.toString()), options.simulate.names);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gc @themrrobert why is the bot requesting to add this?

removed the 2 added changes
@I-am-TURBO I-am-TURBO closed this Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSO Bot School Old
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant