diff options
author | RaindropsSys <contact@minteck.org> | 2023-05-27 17:43:41 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-05-27 17:43:41 +0200 |
commit | 426f5b8b751832cfa16b75381ce6974831333c52 (patch) | |
tree | e2289e06b4e9e52956cd10ad3b634a91df9db258 /handler.js | |
parent | ed1f20d62510e56831a708798d6b8d981a4e8a27 (diff) | |
download | butterscotch-426f5b8b751832cfa16b75381ce6974831333c52.tar.gz butterscotch-426f5b8b751832cfa16b75381ce6974831333c52.tar.bz2 butterscotch-426f5b8b751832cfa16b75381ce6974831333c52.zip |
Updated 4 files (automated)
Diffstat (limited to 'handler.js')
-rw-r--r-- | handler.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -75,7 +75,7 @@ module.exports = (config) => { if (config['source'] === "matrix") { matrixSend(config['room'].roomId, "🚫 Sorry, you do not have any knowledge credits left, run `.usage` for more details."); } else if (config['source'] === "discord") { - config['channel'].send("🚫 Sorry, you do not have any knowledge credits left for now, run `.usage` for more details."); + config['discordSend'](config['channel'], "🚫 Sorry, you do not have any knowledge credits left for now, run `.usage` for more details."); } return; } else { @@ -95,7 +95,7 @@ module.exports = (config) => { if (config['source'] === "matrix") { matrixSend(config['room'].roomId, "🚫 Sorry, you do not have any knowledge credits left, run `.usage` for more details."); } else if (config['source'] === "discord") { - config['channel'].send("🚫 Sorry, you do not have any knowledge credits left for now, run `.usage` for more details."); + config['discordSend'](config['channel'], "🚫 Sorry, you do not have any knowledge credits left for now, run `.usage` for more details."); } return; } else { @@ -110,7 +110,7 @@ module.exports = (config) => { if (config['source'] === "matrix") { matrixSend(config['room'].roomId, "🚫 `." + command + "` is not a valid command."); } else if (config['source'] === "discord") { - config['channel'].send("🚫 `." + command + "` is not a valid command."); + config['discordSend'](config['channel'], "🚫 `." + command + "` is not a valid command."); } } }
\ No newline at end of file |