discord user id is now read correctly

This commit is contained in:
MrGeorgen
2020-06-29 15:07:46 +02:00
parent a9c5071e88
commit 8c3101bc3c

View File

@ -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;
});