diff --git a/server/notification-providers/bale.js b/server/notification-providers/bale.js deleted file mode 100644 index 4b06ab27b..000000000 --- a/server/notification-providers/bale.js +++ /dev/null @@ -1,34 +0,0 @@ -const NotificationProvider = require("./notification-provider"); -const axios = require("axios"); - -class Bale extends NotificationProvider { - name = "bale"; - - /** - * @inheritdoc - */ - async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { - const okMsg = "Sent Successfully."; - const url = "https://tapi.bale.ai"; - - try { - await axios.post( - `${url}/bot${notification.baleBotToken}/sendMessage`, - { - chat_id: notification.baleChatID, - text: msg - }, - { - headers: { - "content-type": "application/json", - }, - } - ); - return okMsg; - } catch (error) { - this.throwGeneralAxiosError(error); - } - } -} - -module.exports = Bale; diff --git a/server/notification.js b/server/notification.js index a9aec46ad..090894bc6 100644 --- a/server/notification.js +++ b/server/notification.js @@ -4,7 +4,6 @@ const Alerta = require("./notification-providers/alerta"); const AlertNow = require("./notification-providers/alertnow"); const AliyunSms = require("./notification-providers/aliyun-sms"); const Apprise = require("./notification-providers/apprise"); -const Bale = require("./notification-providers/bale"); const Bark = require("./notification-providers/bark"); const Bitrix24 = require("./notification-providers/bitrix24"); const ClickSendSMS = require("./notification-providers/clicksendsms"); @@ -94,7 +93,6 @@ class Notification { new AlertNow(), new AliyunSms(), new Apprise(), - new Bale(), new Bark(), new Bitrix24(), new ClickSendSMS(), diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index 08f274787..20e611418 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -113,7 +113,6 @@ export default { "alerta": "Alerta", "AlertNow": "AlertNow", "apprise": this.$t("apprise"), - "bale": "Bale", "Bark": "Bark", "Bitrix24": "Bitrix24", "clicksendsms": "ClickSend SMS", diff --git a/src/components/notifications/Bale.vue b/src/components/notifications/Bale.vue deleted file mode 100644 index ea69e21b1..000000000 --- a/src/components/notifications/Bale.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - diff --git a/src/components/notifications/index.js b/src/components/notifications/index.js index a69504dc2..14989c45f 100644 --- a/src/components/notifications/index.js +++ b/src/components/notifications/index.js @@ -2,7 +2,6 @@ import Alerta from "./Alerta.vue"; import AlertNow from "./AlertNow.vue"; import AliyunSMS from "./AliyunSms.vue"; import Apprise from "./Apprise.vue"; -import Bale from "./Bale.vue"; import Bark from "./Bark.vue"; import Bitrix24 from "./Bitrix24.vue"; import ClickSendSMS from "./ClickSendSMS.vue"; @@ -83,7 +82,6 @@ const NotificationFormList = { "AliyunSMS": AliyunSMS, "apprise": Apprise, "Bark": Bark, - "bale": Bale, "Bitrix24": Bitrix24, "clicksendsms": ClickSendSMS, "CallMeBot": CallMeBot, diff --git a/src/lang/en.json b/src/lang/en.json index 274b7b5aa..b53fa1350 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -437,9 +437,6 @@ "trustProxyDescription": "Trust 'X-Forwarded-*' headers. If you want to get the correct client IP and your Uptime Kuma is behind a proxy such as Nginx or Apache, you should enable this.", "wayToGetLineNotifyToken": "You can get an access token from {0}", "Examples": "Examples", - "supportBaleChatID": "Support Direct Chat / Group / Channel's Chat ID", - "wayToGetBaleChatID": "You can get your chat ID by sending a message to the bot and going to this URL to view the chat_id:", - "wayToGetBaleToken": "You can get a token from {0}.", "Home Assistant URL": "Home Assistant URL", "Long-Lived Access Token": "Long-Lived Access Token", "Long-Lived Access Token can be created by clicking on your profile name (bottom left) and scrolling to the bottom then click Create Token. ": "Long-Lived Access Token can be created by clicking on your profile name (bottom left) and scrolling to the bottom then click Create Token. ",