TeamNovaSoft / discord-bot

Un bot de discord para automatizar algunas cosas en nuestros servidores
MIT License
2 stars 0 forks source link

Make discord bot to make the query to get the user points on month #20

Closed heliomar-pena closed 1 week ago

heliomar-pena commented 1 week ago

Explanation

There is a command /my-points-query that returns the queries for user copy and paste on the server search bar and see their number of points on the month.

In this PR we want to enhancement that feature doing that the bot make the search and return the numbers to the user along with the queries.

Here is an example of response:

Here are your search queries:

**Tasks completed: 7**
```before: 2024-11-01 after: 2024-10-01 in:novabot in:code-review <@&1203085046769262592> <@527199955044139028>```

**Points obtained: 12**
```before: 2024-11-01 after: 2024-10-01 in:novabot in:code-review <@&1258801833191669802> <@527199955044139028>```

**Boosted Points obtained: 4**
```before: 2024-11-01 after: 2024-10-01 in:novabot in:code-review <@&1263873487953592381> <@527199955044139028>```

Screenshots

image

Checklist

This issue can be closed when the following tasks are complete:

References

heliomar-pena commented 1 week ago

Discord doesn´t allow bots to make requests ton the search API (tried for myself and got 401 unauthorized), so this feature is not possible