feat(wolfram): add Wolfram Alpha integration for math/science queries by electron271 · Pull Request #855 · allthingslinux/tux · GitHub
Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

feat(wolfram): add Wolfram Alpha integration for math/science queries#855

Merged
electron271 merged 2 commits into
mainfrom
wolfram-alpha
May 12, 2025
Merged

feat(wolfram): add Wolfram Alpha integration for math/science queries#855
electron271 merged 2 commits into
mainfrom
wolfram-alpha

Conversation

@electron271

@electron271 electron271 commented May 12, 2025

Copy link
Copy Markdown

adds /wolfram command that returns a answer to provided question in image form
image

Summary by Sourcery

Integrate Wolfram Alpha as a new tool, enabling users to query math and science questions via a Discord command and receive visual answers.

New Features:

  • Add /wolfram command to query Wolfram Alpha and return results as images.

Enhancements:

  • Introduce Wolfram Alpha API configuration and category for tools.

Documentation:

  • Add WOLFRAM_APP_ID to .env.example.

@electron271 electron271 added this to the 0.1.0 milestone May 12, 2025
@electron271 electron271 requested a review from Copilot May 12, 2025 04:29
@electron271 electron271 self-assigned this May 12, 2025
@sourcery-ai

sourcery-ai Bot commented May 12, 2025

Copy link
Copy Markdown
Contributor

@electron271 electron271 removed this from the 0.1.0 milestone May 12, 2025

Copilot AI 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.

Pull Request Overview

This PR adds Wolfram Alpha integration to support math and science queries by introducing a new /wolfram command.

  • Added a new configuration property for Wolfram Alpha credentials.
  • Implemented a new cog in tux/cogs/tools/wolfram.py for handling Wolfram Alpha queries and processing the returned image.
  • Updated help documentation and cog loader to include the new "tools" category.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tux/utils/config.py Added Wolfram Alpha configuration property.
tux/help.py Updated help options to include "tools".
tux/cogs/tools/wolfram.py Implemented new Wolfram Alpha integration command.
tux/cog_loader.py Included new "tools" category with load priority.
.env.example Documented sample configuration for Wolfram Alpha.

Comment thread tux/cogs/tools/wolfram.py Outdated
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 12, 2025

Copy link
Copy Markdown

Deploying tux with  Cloudflare Pages  Cloudflare Pages

Latest commit: 30e83f8
Status: ✅  Deploy successful!
Preview URL: https://51fb8b70.tux-afh.pages.dev
Branch Preview URL: https://wolfram-alpha.tux-afh.pages.dev

View logs

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey @electron271 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 4 issues found
  • 🟡 Security: 1 issue found
  • 🟢 Testing: all looks good
  • 🟡 Complexity: 1 issue found
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread tux/cogs/tools/wolfram.py Outdated
Comment thread tux/cogs/tools/wolfram.py
Comment thread tux/cogs/tools/wolfram.py
Comment thread tux/cogs/tools/wolfram.py
Comment thread tux/cogs/tools/wolfram.py
Comment thread tux/cogs/tools/wolfram.py
@electron271 electron271 merged commit bb89ef7 into main May 12, 2025
@electron271 electron271 deleted the wolfram-alpha branch May 12, 2025 04:33
@trunk-io

trunk-io Bot commented May 12, 2025

Copy link
Copy Markdown

⏱️ 9m total CI duration on this PR

Job Cumulative Duration Recent Runs
Analyze (python) 2m 🟩🟩
pyright 2m 🟩🟩🟩
docker 2m 🟩
Analyze (actions) 2m 🟩🟩
Ruff 1m 🟩🟩🟩

settingsfeedbackdocs ⋅ learn more about trunk.io

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants