Page 1 of 1

Tool for Discord PBEM

Posted: Fri Mar 14, 2025 7:06 pm
by LawhMods
I made a tool that I use for PBEM games. It's "dumb", as in if something goes out of sync or if a player leaves or is defeated, you might have to restart it or change a setting. It doesn't rely on accessing any game processes. If anyone is interested in it I can upload it somewhere.

How it works:
- It reads a Discord channel, whether you have the Discord app running or not. If a file is posted onto the channel and the file name has your name tag and the correct game name, it will download the file and place it to the Shadow Empire saves folder.
- It plays a sound when a file is downloaded.
- If you are the first in your turn, it will increase the turn number automatically. It will swap your name with the one who is next in line. The syntax for a save file is "GAMENAME_Turn###_PLAYERNAME.se1"
- Once you load the file, play your turn, and then save the file, it will automatically be uploaded to the channel. It plays a sound when it has uploaded the file to the Discord channel.

If all players have use this tool, the save transfers are fully automated. If you weren't online when a message was sent to you, you can find it in the chat and download it normally. Once it is downloaded, the save will be sent to the Shadow Empire saves folder and the fully automated process can begin again.

The app requires a bot be placed into the Discord server who will handle everything.

Re: Tool for Discord PBEM

Posted: Sun Aug 31, 2025 2:27 am
by Drooog
sounds great, I would be interested in having a look if you could post it.

better yet, I find specific Onedrive folder to be a better save transfer option 'cause it just sits there in the folder and you don't have to upload or anything. do you think you could change the code to scrape the folder instead of a discord upload?