This repository provides a suite of two Python scripts:
- A Discord bot that posts game-related updates in real-time to a designated Discord channel.
- A script that fetches and parses SCUM game logs for various player activities.
- scummyDiscord.py: This script defines a Discord bot that connects to a MySQL database to fetch new player death records and post them to a designated Discord channel.
- scummyLogs.py: This script pulls game logs over FTP, parses different player activities like logins, logouts, chat messages, deaths, etc., and saves them to a MySQL database.
- You need to have
discord.py
andmysql-connector-python
installed:pip install discord.py mysql-connector-python
- Replace database connection details and FTP details with your own credentials.
- Ensure the necessary tables (
RunLog
,Login
,Logout
,Death
, etc.) exist in your database.
- Run
scummyDiscord.py
to start the Discord bot. - Run
scummyLogs.py
to start the log fetcher and parser.
Never commit or share scripts with sensitive information like database or bot token credentials. Always use environment variables or config files to handle such details securely.
This project is open-sourced under the MIT License.
Contributions are welcome! Please make sure to test your changes before making a pull request.