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

Enable discord customizations #778

Merged
merged 2 commits into from Dec 15, 2017

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 <ejhazlett@gmail.com>
"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.

None yet

2 participants