Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

Conversation

@ehazlett
Copy link
Contributor

@ehazlett ehazlett commented Dec 2, 2017

This adds username, avatar_url and color options to the config for Discord notifications. I write mostly Go so please go easy on me for any stupid mistakes :)

Signed-off-by: Evan Hazlett <[email protected]>
"value": message
}]
var postData = {
"username": (config.username != '') ? config.username : "Zenbot",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use:
(config.username != '' ? config.username : "Zenbot")
But AFAIK the parenthesis are optional

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the two additions below

@DeviaVir DeviaVir merged commit 3e545ae into DeviaVir:master Dec 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants