Open EmmettPeck opened 2 years ago
If longer than 256 characters after parsing, format as embed content instead?
Traceback (most recent call last):
File "//app/main.py", line 28, in <module>
bot.load_extension(extension)
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 678, in load_extension
self._load_from_module_spec(spec, name)
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 623, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.minecraft' raised an error: IndexError: list index out of range
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 618, in _load_from_module_spec
setup(self)
File "/app/cogs/minecraft.py", line 227, in setup
bot.add_cog(Minecraft(bot))
File "/app/cogs/gamecog.py", line 50, in __init__
self.servers = self.load_servers()
File "/app/cogs/gamecog.py", line 471, in load_servers
pl = self.get_player_list(server)
File "/app/cogs/minecraft.py", line 118, in get_player_list
player_max = int(response.split("max of")[1].split()[0])
IndexError: list index out of range
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "//app/main.py", line 28, in <module>
bot.load_extension(extension)
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 678, in load_extension
self._load_from_module_spec(spec, name)
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 623, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.minecraft' raised an error: IndexError: list index out of range
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 618, in _load_from_module_spec
setup(self)
File "/app/cogs/minecraft.py", line 227, in setup
bot.add_cog(Minecraft(bot))
File "/app/cogs/gamecog.py", line 50, in __init__
self.servers = self.load_servers()
File "/app/cogs/gamecog.py", line 471, in load_servers
pl = self.get_player_list(server)
File "/app/cogs/minecraft.py", line 118, in get_player_list
player_max = int(response.split("max of")[1].split()[0])
IndexError: list index out of range
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "//app/main.py", line 28, in <module>
bot.load_extension(extension)
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 678, in load_extension
self._load_from_module_spec(spec, name)
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 623, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.minecraft' raised an error: IndexError: list index out of range
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 618, in _load_from_module_spec
setup(self)
File "/app/cogs/minecraft.py", line 227, in setup
bot.add_cog(Minecraft(bot))
File "/app/cogs/gamecog.py", line 50, in __init__
self.servers = self.load_servers()
File "/app/cogs/gamecog.py", line 471, in load_servers
pl = self.get_player_list(server)
File "/app/cogs/minecraft.py", line 118, in get_player_list
player_max = int(response.split("max of")[1].split()[0])
IndexError: list index out of range
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "//app/main.py", line 28, in <module>
bot.load_extension(extension)
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 678, in load_extension
self._load_from_module_spec(spec, name)
File "/usr/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 623, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.minecraft' raised an error: IndexError: list index out of range