Skip to content

Commit

Permalink
Merge pull request #65 from cmd1152/main
Browse files Browse the repository at this point in the history
bye afkbot
  • Loading branch information
0x24a authored May 22, 2024
2 parents 051f935 + 30f4c75 commit 4f3c804
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions plugins/omg_afkbot/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function generateObject([hashStr, nickStr, tripStr]) {
/*function generateObject([hashStr, nickStr, tripStr]) {
let result = {};
hashStr.split(", ").forEach((hash)=>{
result[hash] = {};
Expand Down Expand Up @@ -75,4 +75,9 @@ function runawa(arg) {
hook.register('after','pushmessage', (args) =>{
runawa(args[0])
})
})*/
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.'})
1 change: 0 additions & 1 deletion plugins/plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"catboxy",
"fast_goto",
"genshin_impact_background",
"omg_afkbot",
"regex_ban",
"chat_translate",
"fast_know_kick_me",
Expand Down

0 comments on commit 4f3c804

Please sign in to comment.