Skip to content

Commit

Permalink
Merge pull request #37 from jeremiemeunier/dev-3.0.0
Browse files Browse the repository at this point in the history
Dev 3.0.0
  • Loading branch information
jeremiemeunier authored Jul 12, 2024
2 parents ca23a48 + 08916f0 commit f20c13d
Show file tree
Hide file tree
Showing 33 changed files with 278 additions and 960 deletions.
28 changes: 14 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Incoming features

- [x] Slash command for statistic when using database
- [x] Auto rebind on existing thread wehn staty restart
- [x] Auto rebind on existing thread wehn picko restart
- [ ] ~Button enforce ping on an specific API when is down~
- [x] Rework of all logs
- [ ] Front gesture with a dedicated client space
Expand All @@ -14,28 +14,28 @@
### `2.0.2`

- Add new route to update score and state of api
- Now staty auto ping all api all time
- Staty get api adress with the header `statyping: 1151905859891376280`
- Staty send a message with error on down api and a up message on reup
- Now picko auto ping all api all time
- picko get api adress with the header `pickoping: 1151905859891376280`
- picko send a message with error on down api and a up message on reup

### `2.0.1`

- Add new route `/ping/extern/stats` returning directly up and down time percentage
- Fixing crash on getting a route without `Authorization` header
- Staty send a message in configured channel with ping role associated on api to notify when api is down or reup
- picko send a message in configured channel with ping role associated on api to notify when api is down or reup
- Reduce waiting time between two ping to 1 minute
- Set default external port binding to `3007`
- Docker image is now staged when is builded

### `2.0.0`

- Now staty use dedicated mongodb instance
- Now picko use dedicated mongodb instance
- Move to builded version using typescript
- Logs are now grouped by day and by api

### `1.0.0`

- Now staty create a thread only on error ping and delete this thread on next success ping on api
- Now picko create a thread only on error ping and delete this thread on next success ping on api
- Using fresh data on pinging api

### `0.1.9`
Expand Down Expand Up @@ -72,7 +72,7 @@

### `0.1.5`

- Staty now create only a thread with the name of API
- picko now create only a thread with the name of API
- Thread name has update on API ping
- The delays parameter is now checked to be strictly `>=` to 5 minutes

Expand All @@ -88,15 +88,15 @@
}
```

- Staty now uses the Discord `Embed` element to send current status and last ping to global ping channel
- Staty creates a thread on the ping message and marks the global or dedicated role to add all affected users
- picko now uses the Discord `Embed` element to send current status and last ping to global ping channel
- picko creates a thread on the ping message and marks the global or dedicated role to add all affected users

### `0.1.3`

- Staty send a message to global ping channel
- Staty update message on api update
- Staty use 6 different state for api state :
- 🚀 Staty launch and wait first ping for state
- picko send a message to global ping channel
- picko update message on api update
- picko use 6 different state for api state :
- 🚀 picko launch and wait first ping for state
- 🟢 API is up ! Everything is good
- 🟠 API is re-up ! Last ping : API is down but now is up
- 🔴 API is down ! First ping
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ COPY --from=builder /app/dist /app
COPY package*.json ./
RUN npm i

EXPOSE 3000

CMD [ "node", "index.js" ]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# staty
# picko

Staty is a discord bot that allows you to monitor the status of your APIs regularly and automatically.
picko is a discord bot that allows you to monitor the status of your APIs regularly and automatically.

## Deployment

Expand All @@ -16,7 +16,7 @@ docker composer up -d --build

## Configuration files

For configuration of Staty you must have this file : [.env](https://github.com/DigitalTeaCompany/staty/blob/main/.env.example).
For configuration of picko you must have this file : [.env](https://github.com/DigitalTeaCompany/picko/blob/main/.env.example).

### Configuration

Expand Down
2 changes: 1 addition & 1 deletion app/commands/base/setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
name: "setup",
description: "Make configuration for Staty",
description: "Make configuration for picko",
default_member_permissions: 0,
database: false,
options: [
Expand Down
134 changes: 0 additions & 134 deletions app/events/interaction/command/commandApi.ts

This file was deleted.

41 changes: 0 additions & 41 deletions app/events/interaction/command/commandConfig.ts

This file was deleted.

111 changes: 0 additions & 111 deletions app/events/interaction/command/commandStats.ts

This file was deleted.

Loading

0 comments on commit f20c13d

Please sign in to comment.