Skip to content

/google command for searching in Discord - #637

Closed
Zabuzard wants to merge 1 commit into
developfrom
feature/google_command
Closed

Zabuzard wants to merge 1 commit into
developfrom
feature/google_command

Conversation

@Zabuzard

@Zabuzard Zabuzard commented Oct 17, 2022 •

Copy link
Copy Markdown
Member

Overview

Closes #627. Taken over from #628.

Description from old PR

This pull requests implements 2 new slash commands:

/google <query>
This command searches Google for the input query and provides search results accordingly.

/googleit
This command takes the thread in #active_questions that the command was invoked from and Google's the title of the thread. The command only works in a thread within #active_questions.

In additon to the /googleit command, a message has been added to the bot that tells users that they can ask the bot to google their question.

example of /google

example2 the modified bot message in #active_questions

example3 of /googleit

Checklist

  • PoC
  • Final UX
  • Proper API key management
  • Proper Link previews for good UX
  • Use Jackson for JSON parsing instead of JSONObjects (see WolframAlphaCommand)
  • Polishing

* Added POC for /google command

* Cleaned up code

* Refactoring, docs and the Googleit command. Added the new Google message to the helper.

* Googleit fix

* API key from env variable

* Serfat API key from config file.

* Object.requireNonNull on serpapi api key

* Added generics to SearchStrategy

* Fixed raw use warning

* Log levels

* Solarlint changes
@github-actions

Copy link
Copy Markdown

This pull request is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days.

@github-actions github-actions Bot added stale inactivity-closed Issues that have been closed due to inactivity, but are otherwise valid and might be reopened later labels Jan 12, 2023
@github-actions github-actions Bot closed this Jan 17, 2023
@Zabuzard
Zabuzard deleted the feature/google_command branch August 6, 2025 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inactivity-closed Issues that have been closed due to inactivity, but are otherwise valid and might be reopened later new command Add a new command or group of commands to the bot priority: normal stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Google/Stackoverflow searching for #active-questions and or independent slash command

2 participants