Code Monkey home page Code Monkey logo

keywordtracker's Introduction

KeywordTracker

Allows you to set keywords, and servers to watch, so that you get notifications whenever someone says that word :)

Built off zlib.

This is a build artifact

View and edit the source here: https://github.com/sarahkittyy/KeywordTrackerSource

Screenshots

Keyword Panel

Channel Panel

Notification

Text Notification

User Notification

Inbox

keywordtracker's People

Contributors

infernix avatar sarahkittyy avatar softwaresing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

keywordtracker's Issues

Plugin is set to always send desktop notifications regardless of Discord's own setting

In Discord under App Settings>Notifications there is an option which disables or enables desktop pop-up notifications for notifications. KeywordTracker plugin doesn't respect that setting in Discord nor does the plugin have an off-switch for desktop notifications in plugin's own settings.

I'd wish for the plugin to follow the Discord's main setting but if reading its state is impossible a seperate off-switch would be completely acceptable too.

This is a very annoying issue for me as any desktop notifications cause issues for my Linux's window manager and any desktop pop-up notifications cause fullscreen SDL applications such as games to suffer from very severe stuttering and a big drop in FPS for the duration of the notification's display time.

Notification doesn't direct to the server and channel ( ver. latest update but I don't believe it started with the update )

Has anyone experience this? where when I click the notifications, it opens discord ( when I'm tabbed out ) but doesn't direct me to the actual message, instead it just stays on the previous channel that I left it in.

I've tried everything at this point. Reset settings, uninstall BD and discord, cleared plugins and configs, but nothing works, i've been looking at my windows settings but I don't believe it's that since normal ( All messages, mentions, etc. )notifications from discord works just fine.

edit: interestingly, the new keyword matches tab next to the pin button actually works... (if that changes anything?)

This might be a just me issue but if anyone experienced it before, lmk pls.
Thank you.

Notifications don't work.

Tried re-installing both BetterDiscord & Keyword Tracker, but notifications just don't work for some reason.

[BUG] - Self testing does not work.

I have been trying to make sure the plugin works properly and when I do self-testing it will not trigger. I am convinced that the plugin does not work at all. I am using the latest update with the toggle enabled for self-testing.

Unreliable loading and breakages

I'd noticed that sometimes KeywordTracker doesn't pick up on keywords. I think I've narrowed it down now.

Upon launch of discord if KeywordTracker was already enabled it will load in properly and keywords will work properly and send notifications properly. After launch if KeywordTracker is disabled and enabled it will still send notifications until you tab out of discord, flip through settings pages a few times, flip through a few servers, a few channels, etc. (Triggering it is a but unreliable and it won't happen doing one of those things once always but just screwing around with it a bit doing those things I got the bug every time one way or another.) Then the notifications break entirely and don't come back until the plugin is disabled and enabled again at which point the issue repeats itself.

This also leads to the plugin breaking every time it is updated in the discord instance that it was updated in if the user had KeywordTracker enabled on startup. (This is what caused me to think v1.2.5 notifications were entirely broken in #32 but later it mysteriously fixed itself.)

Having KeywordTracker disabled and only enabling KeywordTracker after startup doesn't seem to have this issue from my testing.

Hopefully this is enough info to replicate the issue on your end.

Obvious workaround for anyone who gets this bug and sees this issue is to just leave KeywordTracker enabled on startup and if you mess with it or update it restart discord.

BUG: Inbox icon indicator is buggy

The keyword matches icon/button that opens the inbox is sometimes red (shown) when there are no items in the inbox, and sometimes it is not shown when there are unread items in the inbox.

PlugIn not working

Hi, I just installed the plugin and am trying to get notifications on specific keywords. It seems like the plugin i snot working for me. Or may be I am doing something wrong? Here are some screemshots of Version, Settings etc.
image
image
image
image
image

popups

when you check your inbox then go to the desired message using the "jump" button, your pop-up windows are breaking and cannot be closed anymore. only ctrl + r helps. screenshot below
Discord_PmoElPHZ4W

Notifications broken on v1.2.5

This does not seem to be the same issue as #30 since I am not getting any of those errors but notifications just refuse to work.

After reverting to v1.2.4 everything seems to work as intended so it appears to be something caused by v1.2.5.

How to/Documentation Help

I don't know what you mean by we can use regex syntax for the keywords and I don't know how to use it. Can you provide some documentation on that please? Thanks!

List of User ids to ignore

Hello, since this seems to be replacement for old WordNotifications plugin, it seems to be lacking way to ignore certain users. (Old plugin also accepted channel ids, but there is a separate option for that here)

No clue if that's on your to-do list yet, but it would be nice to ignore some bots from highlighting me in some tags :)


Also, sorry for pushing that into that issue, but now that i look at it, the notification sound is forced. Might be an edge case, but IMO a switch wouldn't hurt anyone

FR: Archive option

When a keyword match is marked as read, it is totally gone from the system. If we could have an archive system where you can see read keyword matches that would be great.

New Words Arent Recognized

New words I add to the logger go ignored when typed in the server. Old words still set it off but any new ones I add are invisible to the plugin. Even thought Im typing in the terms properly with regex syntax. Although old words work fine for me, a friend of mine who just installed it cant do anything with it (Even when I had them type in the terms exactly as I have. Same words, same syntax, same settings, no results). So new users potentially just have a plugin that doesnt work and have no idea why.

I've tried restarting Discord, reinstalling the plugin, restarting my PC, no changes. Same goes for my friend. At a guess, something changed recently with how the plugin processes newly added terms or something. When and how, I cant say for sure.

I cant tell if it was caused by a recent update to Discord, the library, or the plugin itself. I wish I could narrow it down more. All I know it the rest of the plugin seems to work fine (Based on how it works with the terms I had defined before the update), the issue is just affecting terms added after whatever update broke that process.

Show keyword pings visually

Notifications don't have any visuals attached to them making it very hard to find where the notification is from.

I'm a bit confused here because there was already an issue made on this: #6. And it was said to be added/fixed. I made sure I am on the latest version and I can't find any settings that would change this.

I'm sorry if this is just me not knowing what to do but if that is the case it would be nice to have some some documentation on the feature.

[Accessibility] Notification display duration

I'm trying to change the duration that notifications are being displayed on desktop. The setting for Windows notifications applies to other apps and normal Discord notifications as expected but it doesn't to the ones generated by KeywordTracker.

I'm wondering whether this is due to some limitation or something that could be improved on.

inbox button doesn't work when language is not English

image

pinned messages button's aria-label is different in every language.
In English is Pinned Messages , in Chinese is 已釘選的訊息.


buildInboxPanel() {
  let pinned = ['Pinned Messages', '已釘選的訊息']
    .map((ariaLabelText) => document.querySelector(`div[aria-label*="${ariaLabelText}" i]`))
    .find((pinned) => pinned);
  if (!pinned) {
    return;
  }

This works for me, but need more text to complete fix it for every language user.


I didn't know there's an unread inbox until I discovered my config file is grown to 28MB, so many unread messages, lol

Feature Request: match history/log

Hi!

It would be much appreciated if you could add some sort of log or history with an overview of past matches. I get random pings but sometimes I don't get a desktop notification (if you disable desktop notifications you get nothing but the ping sound), and I have no idea which keyword or server triggered it. Searching and checking every one would be pain, so a simple log with timestamps would make it a lot easier.

Cheers, love the work you've done!

Feature request: Guild/channel mass toggle

A feature that I think would be helpful is a toggle switch that enables/disables all guilds or channels from being tracked. I'm currently in 122 servers and going through them all to disable the ones I don't want to be tracked is a little tedious so having a toggle to disable them all and go through the ones I want would be awesome :)

[Bug] Dosent function

Within the pastweek ive noticed its not being triggered for even basic words like "the" or a persons name. I also am using a user id as i had previously when it worked and that also no longer works. I've deleted the plugin config and retried but it just does not work
(i made sure the server was enabled as well)
v 1.3.6

Plugin crashes when attempting to use with Powercord (with BDCompat)

I'm trying to use the plugin with BDCompat on Powercord, but it ends up crashing the client. The specific error I'm getting is:

TypeError: Cannot read property 'toolbar' of undefined

and I think the problem is somewhere over here:

BdApi.Patcher.before(this.getName(), TitleBar, "default", (_, [props], ret) => {
        if (props.toolbar.type === 'function') return;
        props.toolbar.props.children[0].splice(Math.max(3, props.toolbar.props.children[0].length - 1), 0, this.buildInboxPanel());
      });

Is there a way to also make it compatible with Powercord (via BDCompat)? I have the necessary dependencies installed (XenoLib etc.) and I already have some BetterDiscord plugins functioning properly with BDCompat.

No settings?

image
For some reason there's no settings, i'm not sure how to add a keyword or anything.

No inbox button, no notifications, no error

Installed version 1.2.6 and I would like to enable notifications for ALL messages from a specific user.

those are my plugins
a1

I leave empty field in regexp
a2

and then select my server but i don't know what position is ON and what OFF as its weirdly annotated in the message above
a3

and put my id in whitelist to get notifications
a4

sadly I don't get any inbox icon (where should I even look at it?), nor i get notifications or even error.
Can I kindly ask for help here?

I've downgraded to 1.2.1 and still couldn't see inbox.
Later on I've upgraded to 1.2.6 but still without any success.

Few questions:

  1. what position slider should be to enable setting (left or right)?
  2. do I fill it correctly?
  3. is it tested with a specific discord version?
  4. if I add my DEV ID, will the notifications work? (notify me about all my messages) or will it work only for other users?
  5. where inbox icons should appear?
  6. not all channels are displayed in the list, nor all threads. Will the plugin work with all threads if I mark the channel? Is there any way to find rest of the channels?

I'd really love to get this working and I'll be happy to buy you a few cups of coffee for devs if you will be able to solve it :)

@sarahkittyy

FR: Whitelist option

Sarah: lovely plugin, very useful. If we could have a whitelist option (to not notify when a message contains something even if it matches a word notif) that would be great. That or support regex lookahead/lookbehind. At the moment that doesn't work.

Feature Request

A little inbox button would be really nice, which would list all keyword matches.

No notifications after recent update

Just updated with the recent patch, 1.2.5, notice I am now not getting any notifications for any of my setup keywords/phrases.
Refreshed, and restarted, still nothing.

Keyword Tracker Does Not Work As Intended

I have been trying to get this to work but it has not no matter the things that I do. I have it set up as follows. I have downloaded the latest version, done Ctrl+R, tried fixing it myself, and have reinstalled it again and have gotten nothing. I don't know if it is a user error or the plugins, but every time I say my keywords on my ault to test it, I get no notification or message in the inbox. My ault is running on a fresh install of Discord without BD installed.
image
image
image
image

See in which server you got pinged

Add a visual notification from where you got pinged, because i always have to search in every single server when a keyword is matched, overall nice plugin

Clarification

Hi. in the app settings you write "One regex per line" and I'm guessing you mean "one word/sentence per line", but I'm really not quite sure. So would be nice if you could edit the in-app settings text to be more understandable, and clarify what you mean

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.