diff --git a/app/imports/api/creature/actions/applyAttack.js b/app/imports/api/creature/actions/applyAttack.js index 8cbb971c..677d58dc 100644 --- a/app/imports/api/creature/actions/applyAttack.js +++ b/app/imports/api/creature/actions/applyAttack.js @@ -1,7 +1,7 @@ import math from '/imports/math.js'; -if (Meteor.isServer){ - var sendWebhook = require('/imports/server/discord/webhook.js').default; -} +//if (Meteor.isServer){ +// var sendWebhook = require('/imports/server/discord/webhook.js').default; +//} export default function applyAttack({ prop, @@ -14,8 +14,8 @@ export default function applyAttack({ if (Meteor.isClient){ console.log(`${creature.name} makes a ${prop.name} attack! Rolls ${result} to hit`); } - if (Meteor.isServer) sendWebhook({ - webhook: creature.webhook, - message: `${creature.name} makes a ${prop.name} attack! Rolls ${result} to hit`, - }); + //if (Meteor.isServer) sendWebhook({ + // webhook: creature.webhook, + // message: `${creature.name} makes a ${prop.name} attack! Rolls ${result} to hit`, + //}); } diff --git a/app/imports/api/creature/actions/applyDamage.js b/app/imports/api/creature/actions/applyDamage.js index 4980b6a8..0cb3d611 100644 --- a/app/imports/api/creature/actions/applyDamage.js +++ b/app/imports/api/creature/actions/applyDamage.js @@ -1,8 +1,8 @@ import evaluateAndRollString from '/imports/api/creature/computation/afterComputation/evaluateAndRollString.js'; -if (Meteor.isServer){ - var sendWebhook = require('/imports/server/discord/webhook.js').default; -} +//if (Meteor.isServer){ +// var sendWebhook = require('/imports/server/discord/webhook.js').default; +//} export default function applyDamage({ prop, @@ -20,8 +20,8 @@ export default function applyDamage({ errors.forEach(e => console.error(e)); console.log(`${result} ${prop.damageType}${prop.damageType !== 'healing'? ' damage': ''}`); } - if (Meteor.isServer) sendWebhook({ - webhook: creature.webhook, - message: `${result} ${prop.damageType}${prop.damageType !== 'healing'? ' damage': ''}`, - }); + //if (Meteor.isServer) sendWebhook({ + // webhook: creature.webhook, + // message: `${result} ${prop.damageType}${prop.damageType !== 'healing'? ' damage': ''}`, + //}); }