//META{"name":"FriendNotifications","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/FriendNotifications","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/FriendNotifications/FriendNotifications.plugin.js"}*//
class FriendNotifications {
getName () {return "FriendNotifications";}
getVersion () {return "1.3.0";}
getAuthor () {return "DevilBro";}
getDescription () {return "Notifies you when a Friend or a User your choose to observe changing his online status, can be configured individually in the settings.";}
constructor () {
this.changelog = {
"added":[["Playing/Listening/Streaming","You can now listen for substatus like playing and listening, also added new placeholders like $game and $song to custom notifications"],["Default disable","Option to disable notification for newly added friends"]],
"fixed":[["Startup spam","Fixed the spam of toasts on plugin start"],["Missing sounds","Fixed the missing sounds for playing/listening"]]
};
this.patchModules = {
"StandardSidebarView":"componentWillUnmount"
};
}
initConstructor () {
this.userStatusStore = {};
this.checkInterval = null;
this.timeLog = [];
this.timeLogModalMarkup =
`
Friends LogIn/-Out Timelog