Browse Source
Update roundbot.mjs
Fix mismatch between "err" and "error"
pull/1/head
Abheek
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
bot/roundbot.mjs
|
|
@ -4,9 +4,9 @@ const client = new Discord.Client({ partials: ['MESSAGE', 'CHANNEL', 'REACTION'] |
|
|
|
import fetch from 'node-fetch'; |
|
|
|
import * as fs from 'fs'; |
|
|
|
var hits = 0; |
|
|
|
fs.readFile('numhits.txt', 'utf8', function(err, data){ |
|
|
|
fs.readFile('numhits.txt', 'utf8', function(error, data){ |
|
|
|
hits = data; |
|
|
|
if (err) { |
|
|
|
if (error) { |
|
|
|
console.log(error); |
|
|
|
} |
|
|
|
}); |
|
|
|