From 8c3101bc3ca5bd04970038442450dae60a690d12 Mon Sep 17 00:00:00 2001 From: MrGeorgen Date: Mon, 29 Jun 2020 15:07:46 +0200 Subject: [PATCH] discord user id is now read correctly --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 9268b74..30229a6 100644 --- a/src/main.js +++ b/src/main.js @@ -303,7 +303,7 @@ function activity(string) { //the discordBot part starts here. if (config.discordBot) { fs.access(save, error => { - fs.readFile(save, (err, data) => { + fs.readFile(save, "utf8", (err, data) => { if (err) log(err) id = data; });