# Discord

If you want to use your group' monitors at their best you can integrate their pings into your Pepper CLI.

{% hint style="warning" %}
This kind of task needs your personal Discord token. This token will not be shared/stored anywhere.
{% endhint %}

### Tasks setup

Setting up these kind of tasks is totally different from other modules but it is quite easy at the same time.

First of all, all discord tasks has to be placed inside the `discord` directory places into `tasks` folder.

Here is a table that explains the meaning of every field.

| COLUMN NAME        | VALUE                                                                                                                                                                                                                                                           |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SITE               | DISCORD as a value                                                                                                                                                                                                                                              |
| SERVER             | <p>Server identifier or name.<br><br>e.g. <code>646011490037530621</code> or <code>pepperify</code> </p>                                                                                                                                                        |
| CHANNEL            | <p>Channel identifiers or names, comma separated. You can also write <code>\*</code> if you don't want to restrict the monitoring to a specific channel.<br><br>e.g. <code>646011490037530621, 646011490037530622</code> or <code>amazon, funko</code>     </p> |
| INCLUSIVE KEYWORDS | Optional. Filter all products that contains certain keywords. Read more below.                                                                                                                                                                                  |
| EXCLUSIVE KEYWORDS | Optional. Ingore all products that containes certain keywords. Read more below                                                                                                                                                                                  |
| TOKEN              | Your Discord token. Instructions on how to pick this token in this page.                                                                                                                                                                                        |
| WEBHOOK            | Where catched pings should head to (optional)                                                                                                                                                                                                                   |
| BROWSER            | Ingore this cell as of now.                                                                                                                                                                                                                                     |

{% file src="/files/tccMljkQqgmtYr4EZgXN" %}
Example task file to be placed under "tasks/discord" folder
{% endfile %}

### How to use keywords

For both inclusive and exclusive keywords you can specify a "group" of keywords.

Keywords can be entered as a list of alternatives, separated by commas. Commas behave like OR: if any listed keyword is present, the condition is satisfied.

* Inclusive keywords: a product matches if it contains any of the listed keywords.
* Exclusive keywords: a product is ignored if it contains any of the listed keywords.

**Examples**

* Inclusive: `ram ddr, pokemon trainer, pokemon allenatore`
  * Matches if the product contains `ram ddr` OR `pokemon trainer` OR `pokemon allenatore`.
* Exclusive: `minitin`, `kingston`
  * Ignores the product if it contains `minitin` OR `kingston` .

**Best practices**

* Use commas to separate each keyword or phrase.
* For multi‑word phrases, write the full phrase (e.g., pokemon trainer) as a single item.
* Avoid duplicate items; the list is evaluated with OR.

### How to get my Discord token

You can see how to get it quickly at [this video](https://www.youtube.com/watch?v=GUqSNoJ28aU).&#x20;

A quickiest way will be implemented directly in our extension.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pepperscripts.com/supported-sites-cli/discord.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
