Repository navigation
1.0.0 Discord Random Text Formatter - #245
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The manifest fails repository validation and the trigger references a nonexistent script path.
3 open findings
What changed in this PR
Adds an Espanso package that opens a Tkinter prompt and applies randomized Discord formatting.
Changes:
- Adds the formatting GUI script.
- Registers the
:randytexttrigger. - Documents setup and usage.
| File | Description |
|---|---|
scripts/random_discord_formatter.py |
Implements formatting and GUI input. |
README.md |
Documents behavior and usage. |
package.yml |
Defines the Espanso trigger. |
_manifest.yml |
Provides package metadata. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
smeech
left a comment
There was a problem hiding this comment.
A fun package to reformat text in a markdown-capable environment such as Discord. Uses a benign-looking Python script.
I'll run the automated checks and let Copilot comment.
| word = random_case_word(part) | ||
| formatter = random.choice(FORMATTERS) | ||
| result.append(formatter(word)) |
|
|
||
| def main() -> None: | ||
| # Form field "text" is exposed as ESPANSO_FORM1_TEXT | ||
| raw = os.environ.get("ESPANSO_FORM1_TEXT", "").strip() |
smeech
left a comment
There was a problem hiding this comment.
Thank you for the changes. Copilot has raised a couple of issues which I am happy for you to address or ignore. They depend on the user input, so don't matter much.
I'm re-running the automated checks to make sure it will merge successfully. If that's clear and you're happy with the package as it is, I'll go ahead and merge. It'll take a couple of hours to appear in the Hub.
|
merge them. I tested in discord what copilot thought might happen with backticks and it's not happening. I believe that is because of the lambdas operating on each character one by one. |


an image is worth a 1000 words. No one needs it but here it is.