Skip to content

Commit

Permalink
Version 0.9.21
Browse files Browse the repository at this point in the history
- Support for Discord Web Hooks, added `content` property into web hook text props.
- Thanks to @mikeTWC1984 for this fix!
  • Loading branch information
jhuckaby committed Apr 20, 2023
1 parent 1e52ea3 commit 85f9862
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ module.exports = Class.create({
var hook_text_templates = self.server.config.get('web_hook_text_templates') || self.defaultWebHookTextTemplates;

if (hook_text_templates[hook_data.action]) {
hook_data.text = Tools.sub( hook_text_templates[hook_data.action], hook_data );
hook_data.text = hook_data.content = Tools.sub( hook_text_templates[hook_data.action], hook_data );

// include web_hook_config_keys if configured
if (self.server.config.get('web_hook_config_keys')) {
Expand Down Expand Up @@ -1412,7 +1412,7 @@ module.exports = Class.create({
if (job.code != 0) hook_action = 'job_failure';

if (hook_text_templates[hook_action]) {
hook_data.text = Tools.sub( hook_text_templates[hook_action], hook_data );
hook_data.text = hook_data.content = Tools.sub( hook_text_templates[hook_action], hook_data );

// include web_hook_config_keys if configured
if (this.server.config.get('web_hook_config_keys')) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cronicle",
"version": "0.9.20",
"version": "0.9.21",
"description": "A simple, distributed task scheduler and runner with a web based UI.",
"author": "Joseph Huckaby <[email protected]>",
"homepage": "https://github.com/jhuckaby/Cronicle",
Expand Down

0 comments on commit 85f9862

Please sign in to comment.