Skip to content

Commit

Permalink
fix(discord: commands): init/remove: fix showing 'false' if embeds ar…
Browse files Browse the repository at this point in the history
…e enabled
  • Loading branch information
dsevillamartin committed Jun 17, 2018
1 parent 0e1ac1d commit 9796079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Discord/Commands/GitlabInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class GitlabInitCommand extends Command {
title: `\`${repo}\`: Successfully initialized repository events`,
description: [
'The repository must a webhook pointing to <https://www.yappybots.tk/gitlab>',
!hasEmbed && 'To use embeds to have a nicer GitLab log, say `GL! conf set embed true` in this channel to enable embeds for the current channel.',
!hasEmbed ? 'To use embeds to have a nicer GitLab log, say `GL! conf set embed true` in this channel to enable embeds for the current channel.' : '',
].join('\n'),
};
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Discord/Commands/GitlabInitOrg.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class GitlabInitOrgCommand extends Command {
title: `\`${org}\`: Successfully initialized all public repository events`,
description: [
'The repositories must all have a webhook pointing to <https://www.yappybots.tk/gitlab>',
!hasEmbed && 'To use embeds to have a nicer Gitlab log, say `G! conf set embed true` in this channel.',
!hasEmbed ? 'To use embeds to have a nicer Gitlab log, say `G! conf set embed true` in this channel.' : '',
`Initialized repos: ${repos.length ? repos.map(e => `\`${e}\``).join(', ') : 'None'}`,
].join('\n'),
};
Expand Down

0 comments on commit 9796079

Please sign in to comment.