From 5439197fd129eb7e4b80c02df0ab6e6ee9ccfd4c Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 1 Apr 2021 13:10:29 -0500 Subject: [PATCH] Remove backslashes --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 64832ec..f0d47c8 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const csv = require('csvtojson'); const Discord = require('discord.js'); const client = new Discord.Client({ partials: ['MESSAGE', 'CHANNEL', 'REACTION'] }); -const { execSync } = require("child_process"); +const { execS } = require("child_process"); client.on("ready", () => { console.log("Logged in as " + client.user.tag + "!"); @@ -18,7 +18,7 @@ client.on("message", async message => { memberCount(message); break; case '$addroles': - execSync("wget --no-check-certificate --output-document=participants.csv https://docs.google.com/spreadsheets/d/1lufn28YR29OkCS4wH_WQXfCalAgJRi8_r4NCesJSbQY/export\?gid\=2119488170\&format\=csv", { encoding: 'utf-8' }); + execSync("wget --no-check-certificate --output-document=participants.csv https://docs.google.com/spreadsheets/d/1lufn28YR29OkCS4wH_WQXfCalAgJRi8_r4NCesJSbQY/export?gid=2119488170&format=csv", { encoding: 'utf-8' }); csv().fromFile('participants.csv') .then(users => { users.forEach(function (user) {