Exiled-Team / DiscordIntegration

GNU General Public License v3.0
13 stars 37 forks source link

[BUG] Bot binding only one port when configure with multiple ports #118

Closed agent188 closed 2 years ago

agent188 commented 2 years ago

Describe the bug Bot binding only one port when configure with multiple ports

To Reproduce Steps to reproduce the behavior:

  1. Setup bot wth multiple ports
  2. Run bot
  3. Result unknown

Expected behavior Bot binding all ports from config

Server logs Снимок экрана 2022-07-16 081636 Снимок экрана 2022-07-16 082001

EXILED Version ("latest" is not a version): 5.3.0-beta

Results of show plugins command in console:

DiscordIntegration:
                        - Author: Exiled Team
                        - Version: 6.0.2.0
                        - Required Exiled Version: 5.2.0
                        - Prefix: discord_integration
                        - Priority: Medium

Config bot:

{
  "BotTokens": {
    "1": "XXX",
    "2": "XXX",
    "3": "XXX",
  },
  "Channels": {
    "1": {
      "Logs": {
        "Commands": [
          0
        ],
        "GameEvents": [
          997478263326769172
        ],
        "Bans": [
          997483779419558008
        ],
        "Reports": [
          0
        ],
        "StaffCopy": [
          997478548140994612
        ],
        "Errors": [
          997478631762841690
        ]
      },
      "TopicInfo": [
        997478263326769172
      ],
      "CommandChannel": [
        997453889773260870
      ]
    },
   "2": {
      "Logs": {
        "Commands": [
          0
        ],
        "GameEvents": [
          997478385460711465
        ],
        "Bans": [
          997483779419558008
        ],
        "Reports": [
          0
        ],
        "StaffCopy": [
          997478570257567805
        ],
        "Errors": [
          997478631762841690
        ]
      },
      "TopicInfo": [
        997478385460711465
      ],
      "CommandChannel": [
        997453889773260870
      ]
    },
    "3": {
      "Logs": {
        "Commands": [
          0
        ],
        "GameEvents": [
          997478416821518336
        ],
        "Bans": [
          997483779419558008
        ],
        "Reports": [
          0
        ],
        "StaffCopy": [
          997478587047366676
        ],
        "Errors": [
          997478631762841690
        ]
      },
      "TopicInfo": [
        997478416821518336
      ],
      "CommandChannel": [
        997453889773260870
      ]
    },
  },
  "ValidCommands": {
    "1": {
      "0": [
        "di"
      ]
    },
    "2": {
      "0": [
        "di"
      ]
    },
    "3": {
      "0": [
        "di"
      ]
    },
  },
  "DiscordServerIds": {
    "1": 985085946678632518,
    "2": 985085946678632518,
    "3": 985085946678632518,
  },
  "TcpServers": {
    "1": {
      "Port": 9000,
      "IpAddress": "100.64.55.7"
    },
    "2": {
      "Port": 9001,
      "IpAddress": "100.64.55.7"
    },
    "3": {
      "Port": 9002,
      "IpAddress": "100.64.55.7"
    },
  },
  "KeepAliveInterval": 2000,
  "MessageDelay": 1000,
  "Debug": true
}