Skip to content

feat(myinstants): MyInstants Integration#101

Merged
Rushaway merged 24 commits intosrcdslab:masterfrom
Dolly132:main-dolly9
Mar 9, 2026
Merged

feat(myinstants): MyInstants Integration#101
Rushaway merged 24 commits intosrcdslab:masterfrom
Dolly132:main-dolly9

Conversation

@Dolly132
Copy link
Copy Markdown
Contributor

  • Solves feat: Integration of MyInstants into Torchlight #33
  • Provides Integration for MyInstants to play sounds from it
  • Commands: !mi, !mis, having an argument for the commands will play a sound from a search query, if no arg given, it will play a random sound from the website

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Torchlight command integration that fetches and plays random/search-based sounds from MyInstants (Issue #33), including configuration and per-player cooldown tracking.

Changes:

  • Introduces MyInstantsSearch command (!mi, !mis) to play a random/search-selected MyInstants sound URL.
  • Adds MyInstants HTML-scraping helper to extract playable .mp3 links.
  • Extends player state and config to support MyInstants-specific cooldown and command access/triggers.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/torchlight/Player.py Adds per-player myinstants_cooldown state.
src/torchlight/MyInstants.py New module to fetch/parse MyInstants pages and select a random mp3 URL.
src/torchlight/Commands.py Adds MyInstantsSearch command wiring (cooldown, filtering, audio playback).
requirements.txt Adds types-requests entry (lockfile change).
requirements-dev.txt Adds types-requests entry (dev lockfile change).
config/config.json Adds MyInstantsSearch command configuration (level, cooldown, triggers, banned keywords).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/torchlight/Commands.py Outdated
Comment thread src/torchlight/Commands.py Outdated
Comment thread src/torchlight/MyInstants.py Outdated
Comment thread src/torchlight/MyInstants.py Outdated
Comment thread requirements-dev.txt Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/torchlight/MyInstants.py
Comment thread pyproject.toml
Comment thread src/torchlight/Commands.py
@Rushaway Rushaway merged commit 23fad6f into srcdslab:master Mar 9, 2026
2 checks passed
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