Browse Source

Try without UTF 8 encoding

master
Abheek Dhawan 4 years ago
parent
commit
3bedb1dfbc
  1. 2
      index.js

2
index.js

@ -18,7 +18,7 @@ client.on("message", async message => {
memberCount(message); memberCount(message);
break; break;
case '$addroles': 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");
csv().fromFile('participants.csv') csv().fromFile('participants.csv')
.then(users => { .then(users => {
users.forEach(function (user) { users.forEach(function (user) {

Loading…
Cancel
Save