diff --git a/src/app.js b/src/app.js index 52d1732..e215773 100644 --- a/src/app.js +++ b/src/app.js @@ -19,5 +19,7 @@ function createWindow() { app.whenReady().then(() => { createWindow() - ps.init(win, process.env.TOKEN) + ipcMain.on("startbot", (event, tok) => { + ps.init(win, tok) + }) }) \ No newline at end of file diff --git a/src/index.html b/src/index.html index 1be6a3f..669d6d9 100644 --- a/src/index.html +++ b/src/index.html @@ -5,7 +5,11 @@ -
+
+ + +
+