Skip to content

Commit

Permalink
🤖 commit the built plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 4, 2023
1 parent ef8d569 commit d147d6f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 18 additions & 8 deletions release/AutoIdleOnAFK.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin only works when your status is 'online' and you are not in a voice channel.
For Bugs or Feature Requests open an issue on my Github
* @version 0.3.2
* @version 0.4.0
* @author RoguedBear
* @authorLink https://github.com/RoguedBear
* @website https://github.com/RoguedBear/BetterDiscordPlugin-AutoIdleOnAFK
Expand Down Expand Up @@ -43,19 +43,18 @@ const config = {
link: "https://github.com/RoguedBear"
}
],
version: "0.3.2",
version: "0.4.0",
description: "Automatically updates your discord status to 'idle' when you haven't opened your discord client for more than 5 minutes.\nPlugin only works when your status is 'online' and you are not in a voice channel. \n\nFor Bugs or Feature Requests open an issue on my Github",
github: "https://github.com/RoguedBear/BetterDiscordPlugin-AutoIdleOnAFK",
github_raw: "https://raw.githubusercontent.com/RoguedBear/BetterDiscordPlugin-AutoIdleOnAFK/main/release/AutoIdleOnAFK.plugin.js"
},
changelog: [
{
type: "fixed",
title: "Fixed the plugin :) 🎉",
type: "added",
title: "Added a setting to optionally ignore VC state when going AFK",
items: [
"Fixed the plugin after a long wait!!!",
"Thanks to: `@Violet-Vibes` for nudging me in the right direction, and `DevilBro's` BDFDB library for showing me the way!",
"so glad to have the plugin back working"
"Earlier if you were in a VC you couldn't go in AFK mode. Now you can toggle a setting to ignore whether you are in VC or not before going AFK.",
"default value: off"
]
}
],
Expand Down Expand Up @@ -122,6 +121,14 @@ const config = {
120
]
},
{
type: "switch",
name: "Ignore VC state when going AFK",
note: "Allows going to Idle mode even when you are in a VC. default: off",
id: "ignoreVCState",
value: false,
defaultValue: false
},
{
type: "switch",
name: "Always Revert To Online",
Expand Down Expand Up @@ -378,7 +385,10 @@ module.exports = !global.ZeresPluginLibrary ? Dummy : (([Plugin, Api]) => {
* @returns {boolean} if user is in a VC
*/
inVoiceChannel() {
return getVoiceChannelId() !== null;
return (
this.settings.ignoreVCState === false &&
getVoiceChannelId() !== null
);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion release/AutoIdleOnAFK.plugin.js.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26ae77c5aa75ae6e0335ed68ed5438c1dfe36f3417d00a0fcc1007a89e1c51bb AutoIdleOnAFK.plugin.js
0a57d7da16daff0ea439858ac7a02efb13a1e134ab5e78154f20f6f8675422ce AutoIdleOnAFK.plugin.js

0 comments on commit d147d6f

Please sign in to comment.