nwithan8 / tauticord

A Discord bot that displays live data from Tautulli
GNU General Public License v3.0
114 stars 22 forks source link

[HELP] - Tauticord isn't creating text/voice channels by itself #201

Closed leddie24 closed 8 months ago

leddie24 commented 8 months ago

This issue has not already been resolved

You have read the documentation

Installation Type

Docker Compose

Configuration Type

Configuration File

Type of Issue

Configuration (e.g settings not being applied)

Issue Details

image

Steps to Reproduce

YAML config below. I just updated and recreated my container and am getting the above message.

# yaml-language-server: $schema=https://raw.githubusercontent.com/nwithan8/tauticord/master/.schema/config_v2.schema.json

# Tautulli settings
Tautulli:
  # The URL of the Tautulli server
  URL: "urlhere"
  # The API key for the Tautulli server
  APIKey: "apikeyhere"
  # Whether to use a self-signed certificate
  UseSelfSignedCert: false
  # How often (in seconds) the bot pulls new data. 5-second minimum built-in, it's for your own good
  RefreshSeconds: 15
  # The message to display when a stream is terminated
  TerminateMessage: "Your stream has been terminated. Please contact the admin in the Discord."

# Discord settings
Discord:
  # The token for the Discord bot
  BotToken: "bottoken"
  # The ID of the server
  ServerID: "SERVERID" # Right-click on your server's icon -> "Copy ID"
  # List of admin IDs
  AdminIDs:
    - "adminID" # Right-click on your profile picture -> "Copy ID"
  # Whether to post a live stats summary message
  PostSummaryMessage: true
  # The name of the channel where the live stats summary message will be posted
  ChannelName: "tautulli"
  # Whether to enable slash commands
  EnableSlashCommands: true

# Display settings
Display:
  # Anonymization settings
  Anonymize:
    # Whether to hide bandwidth
    HideBandwidth: false
    # Whether to hide ETA
    HideETA: false
    # Whether to hide platforms
    HidePlatforms: false
    # Whether to hide player names
    HidePlayerNames: false
    # Whether to hide progress
    HideProgress: false
    # Whether to hide quality
    HideQuality: false
    # Whether to hide transcode
    HideTranscode: false
    # Whether to hide usernames
    HideUsernames: true
  # The name of the server
  ServerName: "Weird Plex But OK"
  # The thousands separator
  ThousandsSeparator: ""
  # Time settings
  Time:
    # The time zone of the server
    ServerTimeZone: America/Los_Angeles
    # Whether to use 24 hour time
    Use24HourTime: false
  # Whether to use Plex users' names instead of usernames
  UseFriendlyNames: true

# Extra settings
Extras:
  # Whether to allow analytics. See README.md for details
  AllowAnalytics: true
  # Whether to enable reminders to update Tauticord
  EnableUpdateReminders: true

# Stats settings
Stats:
  # Activity stats about the Plex server
  Activity:
    # The name of the category
    CategoryName: "Plex Stats"
    # Whether to enable the stats
    Enable: true
    # The types of stats
    StatTypes:
      # Bandwidth settings
      Bandwidth:
        # The custom name
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable bandwidth stats
        Enable: false
        # The ID of the voice channel
        VoiceChannelID: 0
      # Local bandwidth settings
      LocalBandwidth:
        # The custom name
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable local bandwidth stats
        Enable: false
        # The ID of the voice channel
        VoiceChannelID: 0
      # Plex server availability settings
      PlexServerAvailability:
        # The custom name
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable Plex server availability stats
        Enable: true
        # The ID of the voice channel
        VoiceChannelID: 0
      # Remote bandwidth settings
      RemoteBandwidth:
        # The custom name
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable remote bandwidth stats
        Enable: false
        # The ID of the voice channel
        VoiceChannelID: 0
      # Stream count settings
      StreamCount:
        # The custom name
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable stream count stats
        Enable: false
        # The ID of the voice channel
        VoiceChannelID: 0
      # Transcode count settings
      TranscodeCount:
        # The custom name
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable transcode count stats
        Enable: false
        # The ID of the voice channel
        VoiceChannelID: 0
  # Stats about the Plex server's libraries
  Libraries:
    # Whether to enable library stats
    Enable: true
    # The name of the category
    CategoryName: "Plex Libraries"
    # How often (in seconds) to refresh the stats
    RefreshSeconds: 3600
    # The libraries
    Libraries:
      # The name of the library in Plex
      - Name: "Audiobooks"
        # A friendlier name for the library to use in Discord
        AlternateName: "My Audiobooks"
        # How to display stats for each type of media in this library
        # Only relevant stats will be included based on library type (e.g. a TV Show library will ignore Album settings)
        Albums:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # Use a specific voice channel for this library's stats, rather than generating a new one
          VoiceChannelID: 0
        Artists:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Episodes:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Movies:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Series:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Tracks:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        # The name of the library in Plex
      - Name: "Movies (4K)"
        # A friendlier name for the library to use in Discord
        AlternateName: "My 4K Movies"
        # How to display stats for each type of media in this library
        # Only relevant stats will be included based on library type (e.g. a TV Show library will ignore Album settings)
        Albums:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Artists:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Episodes:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Movies:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Series:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Tracks:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        # The name of the library in Plex
      - Name: "TV Shows (Non-English)"
        # A friendlier name for the library to use in Discord
        AlternateName: "My Non-English TV Shows"
        # How to display stats for each type of media in this library
        # Only relevant stats will be included based on library type (e.g. a TV Show library will ignore Album settings)
        Albums:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Artists:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Episodes:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Movies:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Series:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Tracks:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
    # Libraries to combine into an aggregate library
    CombinedLibraries:
      # The name of the aggregate library
      - Name: "All Movies"
        # Which Plex libraries to combine into this aggregate library
        Libraries:
          - Movies
          - Movies (Non-English)
          - Movies (4K)
        # How to display stats for each type of media in this library
        # Only relevant stats will be included based on library type (e.g. a TV Show library will ignore Album settings)
        Albums:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Artists:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Episodes:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Movies:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Series:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
        Tracks:
          # The custom name for this metric
          CustomName: ""
          # The custom emoji for this metric
          CustomEmoji: ""
          # Whether to display this metric for this library
          Enable: true
          # The ID of the voice channel
          VoiceChannelID: 0
  # Stats about the Tauticord host's performance
  Performance:
    # The name of the category
    CategoryName: "Performance"
    # Whether to enable performance stats
    Enable: true
    # The metrics
    Metrics:
      # CPU settings
      CPU:
        # The custom name for this metric
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable CPU stats
        Enable: false
        # The ID of the voice channel
        VoiceChannelID: 0
      # Disk space settings
      DiskSpace:
        # The custom name for this metric
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable disk space stats
        Enable: false
        # The ID of the voice channel
        VoiceChannelID: 0
      # Memory settings
      Memory:
        # The custom name for this metric
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable memory stats
        Enable: false
        # The ID of the voice channel
        VoiceChannelID: 0
      # User count settings
      UserCount:
        # The custom name for this metric
        CustomName: ""
        # The custom emoji
        CustomEmoji: ""
        # Whether to enable user count stats
        Enable: true
        # The ID of the voice channel
        VoiceChannelID: 0

Logs

2024-04-03 17:21:11,188 - [INFO]: Migration 001 skipped
2024-04-03 17:21:11,188 - [INFO]: Migration 002 skipped
2024-04-03 17:21:11,188 - [DEBUG]: Loaded config from /config/tauticord.yaml
2024-04-03 17:21:11,222 - [INFO]: Starting Tauticord...
2024-04-03 17:21:11,222 - [INFO]: Setting up Tautulli connector
2024-04-03 17:21:11,222 - [INFO]: Connecting to Tautulli at IPADDRESS
2024-04-03 17:21:11,276 - [DEBUG]: Connected to Tautulli version: v2.13.4
2024-04-03 17:21:11,277 - [INFO]: Setting up Discord connector
2024-04-03 17:21:11,278 - [INFO]: Connecting to Discord...
2024-04-03 17:21:14,153 - [INFO]: Connected to Discord.
2024-04-03 17:21:14,153 - [INFO]: Setting up Discord slash commands...
2024-04-03 17:21:14,154 - [INFO]: Most cog loaded.
2024-04-03 17:21:14,154 - [INFO]: Summary cog loaded.
2024-04-03 17:21:14,154 - [INFO]: Recently cog loaded.
2024-04-03 17:21:14,154 - [INFO]: Slash commands registered.
2024-04-03 17:21:14,341 - [INFO]: Slash commands synced.
2024-04-03 17:21:14,342 - [INFO]: Setting bot status...
2024-04-03 17:21:14,342 - [INFO]: Uploading required resources...
2024-04-03 17:21:14,343 - [INFO]: Loading Tautulli summary service...
2024-04-03 17:21:14,344 - [INFO]: Loading Tautulli text channel settings...
2024-04-03 17:21:14,344 - [ERROR]: Could not load tautulli channel. Attempting to create...

Supporting Information

Gave my bot admin access, no success

nwithan8 commented 8 months ago

@leddie24 Thanks for writing in. You've discovered a bug in the code, which will be fixed in the next release!