mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Removed console.log RPC
This commit is contained in:
@@ -9,7 +9,6 @@ let intervalId;
|
|||||||
|
|
||||||
function startRPC() {
|
function startRPC() {
|
||||||
rpc.on("ready", () => {
|
rpc.on("ready", () => {
|
||||||
console.log("Connecté à Discord !");
|
|
||||||
|
|
||||||
const presence = {
|
const presence = {
|
||||||
largeImageKey: "icon",
|
largeImageKey: "icon",
|
||||||
@@ -27,11 +26,6 @@ function startRPC() {
|
|||||||
}, 15000);
|
}, 15000);
|
||||||
});
|
});
|
||||||
|
|
||||||
rpc.login({ clientId }).catch(err => {
|
|
||||||
console.error("Erreur Discord RPC :", err);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
const cleanExit = () => {
|
const cleanExit = () => {
|
||||||
if (intervalId) clearInterval(intervalId);
|
if (intervalId) clearInterval(intervalId);
|
||||||
rpc.destroy(); // déconnecte proprement
|
rpc.destroy(); // déconnecte proprement
|
||||||
|
|||||||
Reference in New Issue
Block a user