From c755d6e83d06848a4d1410f9e68211ed45e60c03 Mon Sep 17 00:00:00 2001 From: Abheek <67982792+ADawesomeguy@users.noreply.github.com> Date: Mon, 22 Feb 2021 21:54:23 -0600 Subject: [PATCH] Update roundbot.mjs Fix mismatch between "err" and "error" --- bot/roundbot.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/roundbot.mjs b/bot/roundbot.mjs index bb8df2c..4bb6ddf 100644 --- a/bot/roundbot.mjs +++ b/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); } });