Browse Source

Update roundbot.mjs

Fix mismatch between "err" and "error"
pull/1/head
Abheek 4 years ago
committed by GitHub
parent
commit
c755d6e83d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      bot/roundbot.mjs

4
bot/roundbot.mjs

@ -4,9 +4,9 @@ const client = new Discord.Client({ partials: ['MESSAGE', 'CHANNEL', 'REACTION']
import fetch from 'node-fetch'; import fetch from 'node-fetch';
import * as fs from 'fs'; import * as fs from 'fs';
var hits = 0; var hits = 0;
fs.readFile('numhits.txt', 'utf8', function(err, data){ fs.readFile('numhits.txt', 'utf8', function(error, data){
hits = data; hits = data;
if (err) { if (error) {
console.log(error); console.log(error);
} }
}); });

Loading…
Cancel
Save