Skip to content

Conversation

@Zabuzard
Copy link
Member

@Zabuzard Zabuzard commented Oct 17, 2022

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

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

3 participants