Coder Social home page Coder Social logo

dkoz / palworld-palbot Goto Github PK

View Code? Open in Web Editor NEW
32.0 1.0 8.0 200 KB

Palbot - Palworld Discord Bot for RCON, Whitelist, and Server Management.

Home Page: https://discord.kozejin.dev

Python 99.87% Dockerfile 0.13%
discord-bot discord-python palworld palworld-bot palworld-discord-bot palbot

palworld-palbot's Issues

linux docker setup

on debain or ubuntu i innstalled bot but keeps restarting in logs i get

palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 | Palguard disabled by default. Please enable it in config.json
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 774, in _load_from_module_spec
palbot_1 | setup(self, **extras)
palbot_1 | File "/app/cogs/economy/shop.py", line 189, in setup
palbot_1 | bot.add_cog(ShopCog(bot))
palbot_1 | ^^^^^^^^^^^^
palbot_1 | File "/app/cogs/economy/shop.py", line 61, in init
palbot_1 | self.load_shop_items()
palbot_1 | File "/app/cogs/economy/shop.py", line 82, in load_shop_items
palbot_1 | with open(shop_items_path) as shop_items_file:
palbot_1 | ^^^^^^^^^^^^^^^^^^^^^
palbot_1 | FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'
palbot_1 |
palbot_1 | The above exception was the direct cause of the following exception:
palbot_1 |
palbot_1 | Traceback (most recent call last):
palbot_1 | File "/app/main.py", line 69, in
palbot_1 | bot.load_extension(module_name)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension
palbot_1 | self._load_from_module_spec(spec, name, extras=extras)
palbot_1 | File "/usr/local/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 779, in _load_from_module_spec
palbot_1 | raise errors.ExtensionFailed(key, e) from e
palbot_1 | nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.economy.shop' raised an error: FileNotFoundError: [Errno 2] No such file or directory: 'gamedata/kits.json'

Known Issues

This is where I will update the known issues and cross them out as I fix them.

Known Issues

  • Languages like Chinese, Japanese, and Russian do not properly encode when sending broadcast or shutdown messages.
  • JSON not properly storing these languages either, I will work on the UTF encoding for it.
  • Shutdown times are off by a minute or two? Probably the way I run the task, I will look into it.
  • SteamIDs not properly being stored? This is mostly due to the way I sanitize the entries. The game has issues encoding bytes through UTF-8 when utilizing non-latin names, there is no known fix for this.

EOS Issues

  • Some shared hosts will output their port as 8211 regardless of what's setup in the startup flags. This is unfortunately something I cannot resolve. The workaround would be pulling server information by name, but that will not be an option at this time.

/rcon broadcast cuts off after first space in message.

When you use /rcon broadcast, the message cuts off at the first space in-game.

So, if you use the commmand, like:

/rcon broadcast (text)Greetings everyone! (servername)my server

in-game, you'll only see "Greetings"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.