This is a simple Terraria bot to control your TShock server from a Discord Channel. To use this feature, you will have to enable REST Services from your TShock server.
- TShock Server is required.
- startup.bat - This script should be used to start your TShock server on your windows machine
- startup.sh - This script should be used to start your TShock server on your unix machine (pending)
To run terraria-bot you need the following technologies
- python - Python version 3.x is required
- python libraries - The file requirements.txt specifies all the required libraries and modules (produced by pigar)
- TShock should be installed and configured to expose REST Services on your localhost.
- startup script should be located at your TShock root folder
- You have to configure your Discord Bot Application
- Populate your token on the bot.py constant TOKEN
- It is required to create an Admin user on your TShock Server
- It is required to configure your TShock Admin username and password (USERNAME and PASSWORD constants) on the server_adapter.py file (REST API requires admin access)
- Add your Bot to your Discord Channel. Suggestion: oauth2 URL
- Start your server using the startup script and run Bot.py file