Using a self bot is against discords TOS and may result in action being taken against your discord account.
In order to automate saving the server you'll need to find your discord user token, this was previously easy however has become more complicated in recent updates to discord.
Open discord desktop
Open the developer tools (CTRL+SHIFT+I on windows)
Navigate to the network tab in the developer tools
In discord select a channel that you haven't yet opened, the network tab should populate with many requests
Look in the requests for messages?limit=50
select it
Open the Headers tab of the request
Navigate to Request headers and look for Authorization:
Your token will be the long string of characters that follows this, copy it
You will need to get the id of the server you wish to save
Ensure you are a member of the server you wish to save
Open discord settings
Navigate to the Appearance tab
Scroll down to Advanced
Check the Developer Mode toggle to on
Navigate to the server you are saving
Right click the server
Click Copy ID from the context menu
Download the latest release for your platform (mac, ubuntu linux, windows) if your platform is not in the releases you will have to compile it yourself using the .NET Core 3.0 SDK
Versions 1.2.2 of the self bot and below will not work with the Cloner anymore
Run the program
Ensure you have your user token and the id of the server you are saving handy (you must be in the server you are saving in order for it to work)
Enter your token into the program
Enter the server id (Guild ID) into the program
The program will verify your token and begin saving the server
Once complete it will generate a .clone
file in the same directory as the program's files - The file will be named after the server and the time it was saved ex. MyServer-12-30-30 01-01-20.clone
Store this file in a safe place so you can restore the backup as you please