Fix for Module error, and update package.json

This commit is contained in:
Akshit Garg 2019-02-11 22:16:02 +05:30
parent 7d7678ffff
commit 29efedffc6
2 changed files with 3 additions and 2 deletions

2
bot.js
View File

@ -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);

View File

@ -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",