Skip to content

Setting set_limit to 0 or false still causes the DJ to be removed after 1 song plays #74

@bacchustiger

Description

@bacchustiger

I added a check for setlimit !== 0 in the following code in index.js and that works for me, but it doesn't take into account setlimit being set to "false".

if (((user.playcount >= cmbot.settings.setlimit &&  cmbot.settings.setlimit !== 0 && cmbot.session.enforcement) || user.escortme)) {
// If there is only 2 or less dj's (including the bot), don't enforce the set limit for the bot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions