-
-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up the Test Version
Follow these instructions to install the development version of Eggsplode.
First, we need to create a Bot on Discord's side.
- On the Discord Dev Portal, click on New Application. Customize the title, icon, description, etc.
- In the Installation page, select
application.commandsin both User Install and Guild Install. Also selectbotin Guild Install. Under Permissions, select the following:- Send Messages
- Send Messages in Threads
- Attach Files
- Embed Links
- Under Install Link, make sure Discord Provided Link is selected. Copy the install link and open it to install your bot. For now, you should only install it to a test server.
- In the Bot page, click on Reset Token. Copy the new token to a safe place (we'll need it later).
- In Discord, enable Developer Mode under User Settings > Advanced.
- Right-click on your test server and select Copy Server ID.
Clone the Git repo and go to the folder you cloned the repo into.
git clone https://github.com/iqnite/eggsplode
cd eggsplodeNote
I strongly recommend to look into Git and version control before contributing to Eggsplode, as it's important knowledge. There are easy-to-understand tutorials about Git on YouTube, which is why I will not explain it here.
- Copy the
.env.examplefile and rename it to.env. - Open the new
.envfile in a text editor. - Replace
YOUR_BOT_TOKENwith... your Bot Token. - Save the file and close the text editor.
- In the
resourcesfolder, copy theconfig.json.examplefile and rename it toconfig.json. - Open the new
config.jsonfile in a text editor. - Set the
test_guild_idto your test server ID. - Save the file and close the text editor.
Tip
If you don't have your bot token or test server ID anymore, simply repeat steps 4 or 6 in the Bot Setup section, respectively.
Time to install the dependencies!
Important
Eggsplode requires Python 3.10 or higher.
Python's package manager (pip) will automatically detect the required libraries if you run the following commands.
python -m pip install --upgrade pip
pip install -r requirements.txtTip
If one of these commands fails, try replacing python with python3 or pip with pip3.
Although it is best practice to create a virtual environment, it is not strictly necessary. If your operating system enforces it, please google "python virtual environment" and go by a tutorial.
You're all set! Now you can start the bot and it should appear online on your test server!
