Skip to content

Add scotty command - #201

Closed
mirathope wants to merge 3 commits into
CMU-313:mainfrom
mirathope:add-scotty-command
Closed

mirathope wants to merge 3 commits into
CMU-313:mainfrom
mirathope:add-scotty-command

Conversation

@mirathope

@mirathope mirathope commented Sep 14, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #2

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR adds a new /scotty slash command to OpenCode. The command displays ASCII art of Scotty the Scottish Terrier when /scotty is entered. I looked for where current slash commands existed and followed the same implementation by adding the command in index.ts and created a scotty.txt template containing the ASCII art. (Used ChatGPT as AI source)

How did you verify your code works?

I ran OpenCode in the Dev Container and tested the /scotty command. The command successfully displayed the Scotty ASCII art in the OpenCode interface as shown below.

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

scotty

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

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.

P1B: Refactor (script/translate-app.ts:247): Function with high complexity (count = 23): main

2 participants