Skip to content

implement /hakase rps command with random GIFs#6

Merged
dundun007 merged 7 commits into
mainfrom
5-implement-hakase-rps-rock-paper-scissors-slash-command
Jul 21, 2026
Merged

implement /hakase rps command with random GIFs#6
dundun007 merged 7 commits into
mainfrom
5-implement-hakase-rps-rock-paper-scissors-slash-command

Conversation

@dundun007

Copy link
Copy Markdown
Collaborator
  • Added a static list of Rock Paper Scissors GIFs to the "HakaseCommand" companion object.
  • Implemented routing in "onEvent" to capture when the "cmd" option equals "rock-paper-scissors".
  • When triggered, the bot now responds to the interaction with a random GIF from the predefined list instead of the default "hakase pong!".

@dundun007 dundun007 linked an issue Jul 9, 2026 that may be closed by this pull request
@codacy-production

codacy-production Bot commented Jul 9, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 4 complexity · -3 duplication

Metric Results
Complexity 4
Duplication -3

View in Codacy

🟢 Coverage 0.00% diff coverage · +0.15% coverage variation

Metric Results
Coverage variation +0.15% coverage variation (-1.00%)
Diff coverage 0.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (3176eda) Report Missing Report Missing Report Missing
Head commit (95ae4cd) 308 (+151) 24 (+12) 7.79% (+0.15%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#6) 14 0 0.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@dundun007 dundun007 closed this Jul 17, 2026
@dundun007 dundun007 reopened this Jul 17, 2026
@dundun007

Copy link
Copy Markdown
Collaborator Author

change if statement to when
changed each (rps) command to helper functions
add list of gifs as a literal in application.yaml
changed the cmd to cmd

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Gates Passed
6 Quality Gates Passed

See analysis details in CodeScene

Quality Gate Profile: Pay Down Tech Debt
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@dundun007
dundun007 merged commit db0e35c into main Jul 21, 2026
6 checks passed
@dundun007
dundun007 deleted the 5-implement-hakase-rps-rock-paper-scissors-slash-command branch July 21, 2026 03:29
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.

Implement /hakase rps (rock-paper-scissors) slash command

1 participant