Skip to content

Commit

Permalink
add info on color
Browse files Browse the repository at this point in the history
  • Loading branch information
rancoud committed Jan 28, 2024
1 parent 8f38661 commit 172aaec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ You can define only one channel.
##### Message
You can defines multiple messages.

| JSON Parameter | Mandatory | Type | Default value | Description |
| -------------- | --------- | ------ | ------------- | ------------------------------------------------- |
| title | YES | string | | title's message |
| description | YES | string | | description's message |
| color | NO | int | 0 | color on the left of the message |
| role | YES | string | | role's name to assign when user use correct emoji |
| emoji | YES | string | | emoji to use (format is my_emoji without :) |
| JSON Parameter | Mandatory | Type | Default value | Description |
| -------------- | --------- | ------ | ------------- | --------------------------------------------------------------------------------------------- |
| title | YES | string | | title's message |
| description | YES | string | | description's message |
| color | NO | int | 0 | color on the left of the message (format is integer representation of hexadecimal color code) |
| role | YES | string | | role's name to assign when user use correct emoji |
| emoji | YES | string | | emoji to use (format is my_emoji without `:`) |

##### How it works?
Each time you start `discord-bot`, welcome module will check the configuration in the `config.json`.
Expand All @@ -120,4 +120,4 @@ Secondly it will listen two events on `onMessageReactionAdd` and `onMessageReact

After it will search the message in the channel.
If the message is not found then it will publish it and add a reaction to show user which emoji to use.
If the message is found then it will fetch all reactions by the users and apply role.
If the message is found then it will fetch all reactions by the users and apply role.
1 change: 0 additions & 1 deletion welcome/welcome.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ func (w *Manager) updateRoleBelongMessage(message Message) error {
Str("user_id", user.ID).
Str("guild_id", w.config.GuildID).
Msg("Could not find Member in Guild")

continue
}

Expand Down

0 comments on commit 172aaec

Please sign in to comment.