Description

Brings search functionalities to Discord thanks to the Google Search API.

General Utility

QueryBot

Description

Bot that brings search functionalities to Discord thanks to the Google Search API.

Key Features

  • Keywords can be created and used to only search for results on certain websites.
  • Uses safe search on SFW channels and full search on NSFW channels.
  • Automatically leaves servers with > 25 members where over 75% of the member total is comprised of bots (configurable).

Technologies

Installation

  1. Install node.js
  2. Run the following command:
npm i

Configuration

The project requires a settings.ts file to be created. A settings.example.ts file exists with all the fields required. In order to generate a Discord authToken, follow this tutorial up to step 3.

Run

  1. Set up up your settings.ts (more information in the configuration section)
  2. Run npm start on a terminal to start the server.
  3. If not added already, add you bot to your server following the guide posted in the configuration section up to step 4.

Commands

!qb about
Displays information about the bot.

!qb help, !qb ?
Displays the bot's help.

!qb list, !qb ls
Displays all available keywords.

!qb set {keyword} {siteUrl}
Sets a site keyword.
Example: !qb set yt youtube.com.

!qb unset {keyword}
Unsets a site keyword.
Example: !qb unset yt.

!qb search {query}, !qb s {query}
Returns the first search result matching a query on any site.
Example: !qb search discord bots.

!{keyword} {query}
Returns the first search result matching a query on the site corresponding to a keyword.
Example: !yt GMM.

Invite QueryBot to your server

Want to share QueryBot along with other bots? Click here to add it to a list!

Avatar

Txus#0986

0 votes

16 invites

Support this bot by voting for it. You can vote once per day, and your votes appear the next day.

Prefix: !qb

Submitted: Jul 23, 2019 2:39 PM

Edited: Jul 23, 2019 2:39 PM

Tip: Sorting your searches by relevance give you more relevant results compared to other sorting options.