Type !help command for more info on a command. Pzrequestaccess Request access to the PZ server. Pzplaytime Get the total playtime of all players Pzplayers Show current active players on the server Pzgetoption Get the value of a server option Pzdeaths Get the total death count of all players Pzdeathcount Get the total death count of a player Pzwhitelistall Whitelist all active users Pzteleport Teleport a user to another user Pzadditem Adds an item to the specified user's inventory Pzsetaccess Set the access level of a specific user. To get channel id's, enable dev mode on your discord app, and right click a channel and click 'copy id' Copy the sample environment variable file template provided in the project root directory: cp. env file present in the root directory of the project. Make sure your PZ rcon server is listening on 27015 Pip install rcon python-dotenv discord.py psutil watchgod file_read_backwards Yes, I tried using python rcon, and python-valve but it did not work and consistently timed out talking to the pz server This requires the rcon executable in the same directory as the script Pzwatcher.py - Will watch logs and report ingame activities to specified channels It also will handle the bot status changing and updating. Pzbot.py - Handles all commands and server communication. I will not go into how to setup a bot or a service for a python script here, there are tons of guides already, but have included basic unit files for this bot This must be locally hosted on your PZ server due to the interactions it requires to get specific informationÄue to how this bot interacts with the server for specific information (rcon, log files, active processes) it must be running on the server that runs project zomboid
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |