From 29efedffc6a24efd6c0c99a097484836c639fb78 Mon Sep 17 00:00:00 2001 From: Akshit Garg Date: Mon, 11 Feb 2019 22:16:02 +0530 Subject: [PATCH] Fix for Module error, and update package.json --- bot.js | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 998b15b..6cea31f 100644 --- a/bot.js +++ b/bot.js @@ -1,7 +1,7 @@ const Telegraf = require("telegraf"); const { BOT_API_KEY } = process.env; const fs = require("fs").promises; -const commands = require("./commands"); +const commands = require("./command/random"); const bot = new Telegraf(BOT_API_KEY); diff --git a/package.json b/package.json index 6798a5d..8598804 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "A bot to make group chat fun", "main": "bot.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "start": "node bot" }, "repository": { "type": "git",