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

Channels aren't recognized after changing the Channel Name #15

Open
RikerTuros opened this issue May 8, 2020 · 1 comment
Open

Channels aren't recognized after changing the Channel Name #15

RikerTuros opened this issue May 8, 2020 · 1 comment

Comments

@RikerTuros
Copy link
Contributor

Similar to the issue regarding not picking up new channels after the bot starts. Should be a quick fix to have the bot update the channel listing when the channel is updated.

@VelkanGk
Copy link

VelkanGk commented Sep 8, 2020

@RikerTuros and @LilithTheSuccubus
There are 2 ways to solve this. First, on channelUpdate check the new name of the channel and updating all registries.

The second method is a little more drastic, implies changing nameTracker.json structure.

{
    players: {
        [userID]:{
            userID: userID,
            name: "user_name",
            registries: {
                [channelID]: "nickname",
                [channelID]: "nickname",
            }
        },
        [userID]:{
            userID: userID,
            name: "user_name",
            registries: {
                [channelID]: "nickname",
                [channelID]: "nickname",
            }
        }
    }
}

This way you can speed up the process when there are lots of users and nicknames registered. Instead looping through each one of them, just go directly to a single one. Also if the user name or the channel names changes, you don't mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants