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

Discord UseLocalAvatar option does not work for most users #2098

Open
lewisakura opened this issue Nov 5, 2023 · 0 comments
Open

Discord UseLocalAvatar option does not work for most users #2098

lewisakura opened this issue Nov 5, 2023 · 0 comments
Labels

Comments

@lewisakura
Copy link

Describe the bug
The UseLocalAvatar option does not apply avatars to most users even when they have associated Discord accounts. We are using Matterbridge in a 30k member Discord server, and upon review of the source code it seems like Matterbridge is only caching a subset of our users (which even then sometimes does not work until ages later).

To Reproduce
Unsure if it's easy to reproduce, see above context.

Expected behavior
Matterbridge would request users as needed instead of relying purely on cache.

Screenshots/debug logs
image

Environment (please complete the following information):

  • OS: Oracle Linux Server 8.8 aarch64
  • Self compiled: 56e7bd0

Additional context
matterbridge.toml

[irc]
    [irc.libera]
    Server="irc.libera.chat:6697"

    UseTLS=true
    SkipTLSVerify=false
    UseSASL=true

    Nick="[redacted]"
    RealName="[redacted]"
    NickServNick="[redacted]"
    NickServPassword="[redacted]"

    ColorNicks=true

    RemoteNickFormat="<{NOPINGNICK}> "

[discord]
    [discord.[redacted]]
    Token="[redacted]"
    Server="[redacted]"

    AllowMention=["users"]
    ShowEmbeds=true

    AutoWebhooks=true
    UseLocalAvatar=["irc.libera"]
    ShowJoinPart=true

    StripNick=true

    RemoteNickFormat="{TENGO}"

    UseUserName=true
    EditSuffix=" (edited)"

[tengo]
RemoteNickFormat="/etc/matterbridge/remotenickformat.tengo"

[[gateway]]
name="[redacted]"
enable=true

    [[gateway.inout]]
    account="irc.libera"
    channel="#[redacted]"

    [[gateway.inout]]
    account="discord.[redacted]"
    channel="[redacted]"

/etc/matterbridge/remotenickformat.tengo

text := import("text")
result = text.to_lower(nick)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant