summaryrefslogtreecommitdiff
path: root/handler.js
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-05-27 17:43:41 +0200
committerRaindropsSys <contact@minteck.org>2023-05-27 17:43:41 +0200
commit426f5b8b751832cfa16b75381ce6974831333c52 (patch)
treee2289e06b4e9e52956cd10ad3b634a91df9db258 /handler.js
parented1f20d62510e56831a708798d6b8d981a4e8a27 (diff)
downloadbutterscotch-426f5b8b751832cfa16b75381ce6974831333c52.tar.gz
butterscotch-426f5b8b751832cfa16b75381ce6974831333c52.tar.bz2
butterscotch-426f5b8b751832cfa16b75381ce6974831333c52.zip
Updated 4 files (automated)
Diffstat (limited to 'handler.js')
-rw-r--r--handler.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/handler.js b/handler.js
index c323de5..5af8880 100644
--- a/handler.js
+++ b/handler.js
@@ -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