[PR #3] [MERGED] Add /weather-location and /weather-units slash commands #2

Closed
opened 2026-10-15 13:27:55 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SillyTavern/Extension-Weather/pull/3
Author: @Copilot
Created: 2/24/2026
Status: ✅ Merged
Merged: 2/24/2026
Merged by: @Cohee1207

Base: main ← Head: copilot/add-weather-location-units-commands


📝 Commits (2)

  • 3594949 Initial plan
  • 5054442 Add /weather-location and /weather-units slash commands

📊 Changes

2 files changed (+123 additions, -0 deletions)

View changed files

📝 README.md (+30 -0)
📝 index.js (+93 -0)

📄 Description

New slash commands to get/set preferred location and units, matching the existing /weather-provider pattern.

  • /weather-location [location] — Returns current preferred location when called without args; sets it when provided. Updates the UI input and persists settings.
  • /weather-units [units] — Returns current units when called without args; sets to metric or imperial when provided. Validates input, updates the UI select, provides autocomplete enums.
  • Both support quiet named arg to suppress toast notifications
  • README updated with documentation and examples
/weather-location London, UK
/weather-units imperial
/weather-units quiet=true metric

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SillyTavern/Extension-Weather/pull/3 **Author:** [@Copilot](https://github.com/apps/copilot-swe-agent) **Created:** 2/24/2026 **Status:** ✅ Merged **Merged:** 2/24/2026 **Merged by:** [@Cohee1207](https://github.com/Cohee1207) **Base:** `main` ← **Head:** `copilot/add-weather-location-units-commands` --- ### 📝 Commits (2) - [`3594949`](https://github.com/SillyTavern/Extension-Weather/commit/35949497ca6d361c71f64a6b88e3ea6ab821ba34) Initial plan - [`5054442`](https://github.com/SillyTavern/Extension-Weather/commit/5054442c2d51740e07469052f8c8c07355652f82) Add /weather-location and /weather-units slash commands ### 📊 Changes **2 files changed** (+123 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+30 -0) 📝 `index.js` (+93 -0) </details> ### 📄 Description New slash commands to get/set preferred location and units, matching the existing `/weather-provider` pattern. - **`/weather-location [location]`** — Returns current preferred location when called without args; sets it when provided. Updates the UI input and persists settings. - **`/weather-units [units]`** — Returns current units when called without args; sets to `metric` or `imperial` when provided. Validates input, updates the UI select, provides autocomplete enums. - Both support `quiet` named arg to suppress toast notifications - README updated with documentation and examples ```stscript /weather-location London, UK /weather-units imperial /weather-units quiet=true metric ``` <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/SillyTavern/Extension-Weather/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 13:27:55 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/Extension-Weather#2
No description provided.