diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-11 17:56:56 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-11 17:56:56 +0200 |
| commit | 3a857d9795d467fcb91910feb23e12ac3c18393c (patch) | |
| tree | 705d1a2790c2913045905fac9339f00424ef463b | |
| parent | 51e9c6d0c58be8f99c166aa7be85342c9a1d5f83 (diff) | |
| download | discordbot-3a857d9795d467fcb91910feb23e12ac3c18393c.tar.gz discordbot-3a857d9795d467fcb91910feb23e12ac3c18393c.zip | |
fix tracking failing the bot in DMs
| -rw-r--r-- | util.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -55,8 +55,8 @@ module.exports.trackAction = (msg, action, ign="") => { user.pageview({ documentPath: action, documentTitle: ign, - campaignSource: msg.guild.id, - campaignMedium: msg.guild.name + campaignSource: (msg.guild? msg.guild.id : 0), + campaignMedium: (msg.guild? msg.guild.name : "private") }).send(); }; |
