2025-05-03 17:58:02 +02:00
|
|
|
# Copyright (c) Paillat-dev
|
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
2025-05-03 16:22:11 +02:00
|
|
|
import requests
|
|
|
|
|
|
|
|
|
|
URL = "https://raw.githubusercontent.com/Discord-Datamining/Discord-Datamining/refs/heads/master/current.js"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def dowload() -> str:
|
2025-05-03 18:13:58 +02:00
|
|
|
"""Download the latest discord build from the datamining repository.
|
|
|
|
|
|
|
|
|
|
Returns the content of the file as a string.
|
|
|
|
|
"""
|
2025-05-03 16:22:11 +02:00
|
|
|
print("Downloading the latest discord build")
|
2025-05-03 18:13:58 +02:00
|
|
|
response = requests.get(URL, timeout=10)
|
2025-05-03 16:22:11 +02:00
|
|
|
response.raise_for_status()
|
|
|
|
|
return response.text
|