From 30f4c75e782490ad707d5af27b8d296c38424b31 Mon Sep 17 00:00:00 2001 From: cmd1152 Date: Wed, 22 May 2024 21:17:28 +0800 Subject: [PATCH] bye afkbot --- plugins/omg_afkbot/index.js | 9 +++++++-- plugins/plugins.json | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/omg_afkbot/index.js b/plugins/omg_afkbot/index.js index 5715dd1..8d4fb21 100644 --- a/plugins/omg_afkbot/index.js +++ b/plugins/omg_afkbot/index.js @@ -1,4 +1,4 @@ -function generateObject([hashStr, nickStr, tripStr]) { +/*function generateObject([hashStr, nickStr, tripStr]) { let result = {}; hashStr.split(", ").forEach((hash)=>{ result[hash] = {}; @@ -75,4 +75,9 @@ function runawa(arg) { hook.register('after','pushmessage', (args) =>{ runawa(args[0]) -}) \ No newline at end of file +})*/ +plugins = JSON.parse(localStorage.getItem("plugins")); +let byeAfk = plugins.indexOf("https://plugins.hach.chat/plugins/omg_afkbot/index.js"); +if (byeAfk !== -1) plugins.splice(byeAfk,1); +localStorage.setItem("plugins",JSON.stringify(plugins)); +pushMessage({nick:'!',text:'Thanks for using the omgAFK plugin. Unfortunately, due to the departure of AfK_Bot, this plugin may never work again. It is still archived but no longer accessible. It has now been removed from your plugin list.'}) \ No newline at end of file diff --git a/plugins/plugins.json b/plugins/plugins.json index 9707228..421419d 100644 --- a/plugins/plugins.json +++ b/plugins/plugins.json @@ -13,7 +13,6 @@ "catboxy", "fast_goto", "genshin_impact_background", - "omg_afkbot", "regex_ban", "chat_translate", "fast_know_kick_me",