Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'gay-of-the-day' plugin should not award bot members #47

Open
shizzard opened this issue Apr 2, 2019 · 2 comments
Open

'gay-of-the-day' plugin should not award bot members #47

shizzard opened this issue Apr 2, 2019 · 2 comments
Assignees
Labels
bug first-issue Good one for a newcomer

Comments

@shizzard
Copy link
Owner

shizzard commented Apr 2, 2019

No description provided.

@shizzard shizzard added the bug label Apr 2, 2019
@shizzard shizzard self-assigned this Apr 2, 2019
@shizzard shizzard changed the title 'gay-of-the-day' plugin should not award bot users 'gay-of-the-day' plugin should not award bot members Apr 2, 2019
@shizzard shizzard added the first-issue Good one for a newcomer label Apr 2, 2019
@shizzard
Copy link
Owner Author

shizzard commented Apr 2, 2019

Check if Author is a bot (marvin_pdu2_object_user:bot/1) in apps/marvin_plugin/src/gay_of_the_day/marvin_plugin_gay_of_the_day.erl:

handle_info_guild_event(Event, S0) ->
    Author = marvin_pdu2_dispatch_message_create:author(marvin_guild_pubsub:payload(Event)),
    ets:insert(S0#state.active_users, #active_user{
        user_id = marvin_pdu2_object_user:id(Author),
        user = Author
    }),
    {noreply, S0}.

@shizzard
Copy link
Owner Author

shizzard commented Dec 2, 2020

This should be done by filtering out bot messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug first-issue Good one for a newcomer
Projects
None yet
Development

No branches or pull requests

1 participant