keep going..
This commit is contained in:
parent
9286548bfd
commit
3b23421140
172
app.js
172
app.js
@ -11,6 +11,13 @@ const fs = require('fs');
|
||||
const logger = require('perfect-logger');
|
||||
const TelegramBot = require('node-telegram-bot-api');
|
||||
|
||||
const bot_chat = require('./data/bot/chat')
|
||||
const bot_welcome = require('./data/bot/welcomeMesage')
|
||||
const bot_questions = require('./data/bot/questions')
|
||||
const bot_football = require('./data/bot/requests/football')
|
||||
const bot_joke = require('./data/bot/requests/joke')
|
||||
const bot_faq_subscriptions = require('./data/bot/faq/subscriptions')
|
||||
|
||||
const token = process.env.BOT_TOKEN;
|
||||
const name = process.env.BOT_NAME;
|
||||
const channel = process.env.CHANNEL
|
||||
@ -31,153 +38,46 @@ const bot = new TelegramBot(token, {
|
||||
|
||||
// Wlecome Message
|
||||
bot.on('new_chat_members', (msg) => {
|
||||
const newUserMention = "<a href=\"tg:\/\/user?id=" + msg.new_chat_member.id + "\">@" + msg.new_chat_member.first_name + "<\/a>"
|
||||
bot.sendMessage(msg.chat.id, "Hello " + newUserMention + ", Welcome to " + channel + ". \n\nPlease PM me @" + process.env.BOT_USERNAME + " to find out all needed information about our service before asking an admin or posting in here.\n\nIf you do ask questions, and its obvious you have not spoken to me, you will be booted from the room. This is IPTV, admins don't have time for hand holding.!!!", { parse_mode: "HTML" });
|
||||
logger.info("ID - " + msg.new_chat_member.id + " First Name - " + msg.new_chat_member.first_name + " joined the group");
|
||||
bot_welcome.welcomeMessage(bot, msg, logger)
|
||||
});
|
||||
|
||||
bot.on('message', (msg) => {
|
||||
|
||||
// Listen call for "help"
|
||||
const help = "help";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(help)) {
|
||||
const userMention = "<a href=\"tg:\/\/user?id=" + msg.from.id + "\">@" + msg.from.first_name + "<\/a>"
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked for help");
|
||||
bot.sendMessage(msg.chat.id, "Hello " + userMention + " please PM me @" + process.env.BOT_USERNAME + " and i'll try to help.", { parse_mode: "HTML" });
|
||||
}
|
||||
bot_chat.help(bot, msg, logger)
|
||||
// listen for "filelinked code"
|
||||
bot_chat.filelinked_help(bot, msg, logger)
|
||||
// listen for "bye"
|
||||
bot_chat.bye(bot, msg, logger)
|
||||
// listen for "thank you BOT"
|
||||
bot_chat.thankYou(bot, msg, logger, name)
|
||||
// listen for "i love you BOT"
|
||||
bot_chat.iLoveYou(bot, msg, logger, name)
|
||||
// listen for "deal"
|
||||
bot_chat.loveADeal(bot, msg, logger)
|
||||
// listen for "football today"
|
||||
bot_football.gamesToday(bot, msg, logger)
|
||||
// listen for "BOT tell me a joke"
|
||||
bot_joke.tellMe(bot, msg, logger, name)
|
||||
// listen for "you there BOT"
|
||||
bot_chat.youThere(bot, msg, logger, name)
|
||||
// listen for "fuck off BOT"
|
||||
bot_chat.fOff(bot, msg, logger, name)
|
||||
// listen for "what sub should i buy?"
|
||||
bot_questions.whatSubShouldIBuy(bot, msg, logger)
|
||||
|
||||
const help_filelinked = "filelinked code";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(help_filelinked)) {
|
||||
const userMention = "<a href=\"tg:\/\/user?id=" + msg.from.id + "\">@" + msg.from.first_name + "<\/a>"
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked for fileLinked code");
|
||||
bot.sendMessage(msg.chat.id, "Hello " + userMention + " please PM me @" + process.env.BOT_USERNAME + " and i'll give you the code", { parse_mode: "HTML" });
|
||||
}
|
||||
bot_faq_subscriptions.prices(bot, msg, logger)
|
||||
|
||||
|
||||
|
||||
const bye = "bye";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(bye)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said bye");
|
||||
bot.sendMessage(msg.chat.id, "Bye " + msg.from.first_name + ", Hope to see you again.");
|
||||
}
|
||||
|
||||
|
||||
const love = "i love you ";
|
||||
const lovePlus = love + name.toLowerCase()
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(lovePlus)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said they loved me");
|
||||
bot.sendMessage(msg.chat.id, "I love you too " + msg.from.first_name);
|
||||
}
|
||||
|
||||
|
||||
const thankYou = "thank you " + name.toLowerCase();
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(thankYou)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said thank you");
|
||||
bot.sendMessage(msg.chat.id, "You're welcome " + msg.from.first_name);
|
||||
}
|
||||
|
||||
|
||||
const footballToday = "football today";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(footballToday)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " asked for football today");
|
||||
|
||||
var options = {
|
||||
method: 'GET',
|
||||
url: 'https://football-pro.p.rapidapi.com/api/v2.0/livescores',
|
||||
qs: { tz: 'Europe/London', leagues: '8', include: 'localTeam,visitorTeam' },
|
||||
headers: {
|
||||
'x-rapidapi-host': 'football-pro.p.rapidapi.com',
|
||||
'x-rapidapi-key': process.env.RAPIDAPI_API_KEY,
|
||||
useQueryString: true
|
||||
},
|
||||
ttl: 18000000 //5 hours
|
||||
};
|
||||
|
||||
cachedRequest(options, function (error, response, body) {
|
||||
// console.log(response)
|
||||
if (error) throw new Error(error);
|
||||
|
||||
// console.log(body);
|
||||
let jsonBody = JSON.parse(body)
|
||||
if (jsonBody.data.length > 0) {
|
||||
bot.sendMessage(msg.chat.id, 'Yes there is!').then(() => {
|
||||
return jsonBody.data.forEach(function (entry) {
|
||||
var homeTeam = entry.localTeam.data.name
|
||||
var awayTeam = entry.visitorTeam.data.name
|
||||
var startTime = entry.time.starting_at.time
|
||||
// console.log(entry);
|
||||
bot.sendMessage(msg.chat.id, homeTeam + " VS " + awayTeam + " @ " + startTime)
|
||||
});
|
||||
}).then(() => {
|
||||
return bot.sendMessage(msg.chat.id, 'To see what channels the football is streaming on please join @footballontv')
|
||||
})
|
||||
} else {
|
||||
bot.sendMessage(msg.chat.id, 'Sadly there is no football today :(')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const joke = name.toLowerCase() + " tell me a joke";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(joke)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " asked for a joke");
|
||||
|
||||
var options = {
|
||||
method: 'GET',
|
||||
url: 'https://joke3.p.rapidapi.com/v1/joke',
|
||||
// qs: { tz: 'Europe/London', leagues: '8', include: 'localTeam,visitorTeam' },
|
||||
headers: {
|
||||
'x-rapidapi-host': 'joke3.p.rapidapi.com',
|
||||
'x-rapidapi-key': process.env.RAPIDAPI_API_KEY,
|
||||
useQueryString: true
|
||||
},
|
||||
// ttl: 18000 //5 hours
|
||||
};
|
||||
|
||||
request(options, function (error, response, body) {
|
||||
// console.log(response)
|
||||
|
||||
if (error) throw new Error(error);
|
||||
let jsonBody = JSON.parse(body)
|
||||
bot.sendMessage(msg.chat.id, jsonBody.content)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
const youThere = "you there " + name.toLowerCase() + "?";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(youThere)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " asked if im there");
|
||||
bot.sendMessage(msg.chat.id, "Always...");
|
||||
}
|
||||
|
||||
const fuuk = "fuck off ";
|
||||
const fuuckPlus = fuuk + name.toLowerCase()
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(fuuckPlus)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " told me to fuck off");
|
||||
bot.sendMessage(msg.chat.id, "Fuck off yourself " + msg.from.first_name + "!");
|
||||
}
|
||||
|
||||
const whatSubShouldIBuy = "what sub should i buy?"
|
||||
const subs = ["VIP!", "Premium Plus!", "Old Premium!", "Gold!", "Bronze!", "New Premium!", "KDB!", "Technoid!", "Bluemoon!", "SOL!", "Gambler!", "All of em!"]
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(whatSubShouldIBuy)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked what sub to buy");
|
||||
const randomSub = subs[Math.floor(Math.random() * subs.length)];
|
||||
bot.sendMessage(msg.chat.id, randomSub);
|
||||
}
|
||||
|
||||
const deal = "deal";
|
||||
// const me = 434187971
|
||||
// const sarah = 868225940
|
||||
// const MANC = 470861863
|
||||
if (msg.text && msg.text.toString().toLowerCase().match(/\bdeal\b/)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said we got a deal!");
|
||||
bot.sendMessage(msg.chat.id, "I LOVE it when " + msg.from.first_name + ", does a deal :)");
|
||||
}
|
||||
|
||||
const subPrice = "- subscription prices";
|
||||
if (msg.text && msg.text.toString().toLowerCase() === subPrice) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Got subscription Prices");
|
||||
bot.sendMessage(msg.chat.id, "PREMIUM PLUS ----£30\nVIP-----------------------£25\nOLD PREMIUM -----£17\nBLUEMOON ---------£15\nKDB --------------------£14\nGOLD ------------------£13\nTECHNOID -----------£13\nBRONZE --------------£10\nSOL ---------------------£10")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "All of these prices are for 12 Month subscription subs").then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "Keep an eye out though because we offer special deals on different subs from time to time.")
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const howToSignUp = "- how to get a subscription?";
|
||||
if (msg.text && msg.text.toString().toLowerCase() === howToSignUp) {
|
||||
|
63
data/bot/chat.js
Normal file
63
data/bot/chat.js
Normal file
@ -0,0 +1,63 @@
|
||||
module.exports = {
|
||||
help: (bot, msg, logger) => {
|
||||
const help = "help";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(help)) {
|
||||
const userMention = "<a href=\"tg:\/\/user?id=" + msg.from.id + "\">@" + msg.from.first_name + "<\/a>"
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked for help");
|
||||
bot.sendMessage(msg.chat.id, "Hello " + userMention + " please PM me @" + process.env.BOT_USERNAME + " and i'll try to help.", { parse_mode: "HTML" });
|
||||
}
|
||||
},
|
||||
filelinked_help: (bot, msg, logger) => {
|
||||
const help_filelinked = "filelinked code";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(help_filelinked)) {
|
||||
const userMention = "<a href=\"tg:\/\/user?id=" + msg.from.id + "\">@" + msg.from.first_name + "<\/a>"
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked for fileLinked code");
|
||||
bot.sendMessage(msg.chat.id, "Hello " + userMention + " please PM me @" + process.env.BOT_USERNAME + " and i'll give you the code", { parse_mode: "HTML" });
|
||||
}
|
||||
},
|
||||
bye: (bot, msg, logger) => {
|
||||
const bye = "bye";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(bye)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said bye");
|
||||
bot.sendMessage(msg.chat.id, "Bye " + msg.from.first_name + ", Hope to see you again.");
|
||||
}
|
||||
},
|
||||
iLoveYou: (bot, msg, logger, name) => {
|
||||
const love = "i love you ";
|
||||
const lovePlus = love + name.toLowerCase()
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(lovePlus)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said they loved me");
|
||||
bot.sendMessage(msg.chat.id, "I love you too " + msg.from.first_name);
|
||||
}
|
||||
},
|
||||
thankYou: (bot, msg, logger, name) => {
|
||||
const thankYou = "thank you " + name.toLowerCase();
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(thankYou)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said thank you");
|
||||
bot.sendMessage(msg.chat.id, "You're welcome " + msg.from.first_name);
|
||||
}
|
||||
},
|
||||
youThere: (bot, msg, logger, name) => {
|
||||
const youThere = "you there " + name.toLowerCase() + "?";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(youThere)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " asked if im there");
|
||||
bot.sendMessage(msg.chat.id, "Always...");
|
||||
}
|
||||
},
|
||||
fOff: (bot, msg, logger, name) => {
|
||||
const fuuk = "fuck off ";
|
||||
const fuuckPlus = fuuk + name.toLowerCase()
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(fuuckPlus)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " told me to fuck off");
|
||||
bot.sendMessage(msg.chat.id, "Fuck off yourself " + msg.from.first_name + "!");
|
||||
}
|
||||
},
|
||||
loveADeal: (bot, msg, logger) => {
|
||||
const deal = "deal";
|
||||
if (msg.text && msg.text.toString().toLowerCase().match(/\bdeal\b/)) {
|
||||
if (msg)
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Said we got a deal!");
|
||||
bot.sendMessage(msg.chat.id, "I LOVE it when " + msg.from.first_name + ", does a deal :)");
|
||||
}
|
||||
}
|
||||
};
|
38
data/bot/faq/subscriptions.js
Normal file
38
data/bot/faq/subscriptions.js
Normal file
@ -0,0 +1,38 @@
|
||||
const fs = require('fs');
|
||||
const {table} = require('table')
|
||||
const subs = JSON.parse(fs.readFileSync('./data/group/subs.json', 'utf8'))
|
||||
const t = require('obj-array-table')
|
||||
const nodeHtmlToImage = require('node-html-to-image')
|
||||
|
||||
var arrayToTable = require('array-to-table')
|
||||
|
||||
|
||||
module.exports = {
|
||||
prices: (bot, msg, logger) => {
|
||||
const subPrice = "- subscription prices";
|
||||
if (msg.text && msg.text.toString().toLowerCase() === subPrice) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Got subscription Prices");
|
||||
|
||||
|
||||
let test = arrayToTable(subs)
|
||||
|
||||
let t = "<pre>" + test + "</pre>"
|
||||
|
||||
nodeHtmlToImage({
|
||||
output: './image.png',
|
||||
html: t
|
||||
})
|
||||
|
||||
bot.sendMessage(msg.chat.id,
|
||||
`First Header | Second Header
|
||||
------------- | -------------
|
||||
Content Cell | Content Cell
|
||||
Content Cell | Content Cell`, { parse_mode: "Markdown" })
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "All of these prices are for 12 Month subscription subs").then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "Keep an eye out though because we offer special deals on different subs from time to time.")
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
14
data/bot/questions.js
Normal file
14
data/bot/questions.js
Normal file
@ -0,0 +1,14 @@
|
||||
const fs = require('fs');
|
||||
|
||||
module.exports = {
|
||||
whatSubShouldIBuy: (bot, msg, logger) => {
|
||||
const whatSubShouldIBuy = "what sub should i buy"
|
||||
const subs = JSON.parse(fs.readFileSync('./data/group/subs.json', 'utf8'))
|
||||
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(whatSubShouldIBuy)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked what sub to buy");
|
||||
const randomSub = subs[Math.floor(Math.random() * subs.length)];
|
||||
bot.sendMessage(msg.chat.id, randomSub.SUB + "!");
|
||||
}
|
||||
}
|
||||
}
|
47
data/bot/requests/football.js
Normal file
47
data/bot/requests/football.js
Normal file
@ -0,0 +1,47 @@
|
||||
module.exports = {
|
||||
gamesToday: (bot, msg, logger) => {
|
||||
const footballToday = "football today";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(footballToday)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " asked for football today");
|
||||
|
||||
var options = {
|
||||
method: 'GET',
|
||||
url: 'https://football-pro.p.rapidapi.com/api/v2.0/livescores',
|
||||
qs: { tz: 'Europe/London', leagues: '8', include: 'localTeam,visitorTeam' },
|
||||
headers: {
|
||||
'x-rapidapi-host': 'football-pro.p.rapidapi.com',
|
||||
'x-rapidapi-key': process.env.RAPIDAPI_API_KEY,
|
||||
useQueryString: true
|
||||
},
|
||||
ttl: 18000000 //5 hours
|
||||
};
|
||||
|
||||
cachedRequest(options, function (error, response, body) {
|
||||
// console.log(response)
|
||||
if (error) throw new Error(error);
|
||||
|
||||
// console.log(body);
|
||||
let jsonBody = JSON.parse(body)
|
||||
if (jsonBody.data.length > 0) {
|
||||
bot.sendMessage(msg.chat.id, 'Yes there is!').then(() => {
|
||||
return jsonBody.data.forEach(function (entry) {
|
||||
var homeTeam = entry.localTeam.data.name
|
||||
var awayTeam = entry.visitorTeam.data.name
|
||||
var startTime = entry.time.starting_at.time
|
||||
// console.log(entry);
|
||||
bot.sendMessage(msg.chat.id, homeTeam + " VS " + awayTeam + " @ " + startTime)
|
||||
});
|
||||
}).then(() => {
|
||||
return bot.sendMessage(msg.chat.id, 'To see what channels the football is streaming on please join @footballontv')
|
||||
})
|
||||
} else {
|
||||
bot.sendMessage(msg.chat.id, 'Sadly there is no football today :(')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
30
data/bot/requests/joke.js
Normal file
30
data/bot/requests/joke.js
Normal file
@ -0,0 +1,30 @@
|
||||
module.exports = {
|
||||
tellMe: (bot, msg, logger, name) => {
|
||||
const joke = name.toLowerCase() + " tell me a joke";
|
||||
if (msg.text && msg.text.toString().toLowerCase().includes(joke)) {
|
||||
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " asked for a joke");
|
||||
|
||||
var options = {
|
||||
method: 'GET',
|
||||
url: 'https://joke3.p.rapidapi.com/v1/joke',
|
||||
// qs: { tz: 'Europe/London', leagues: '8', include: 'localTeam,visitorTeam' },
|
||||
headers: {
|
||||
'x-rapidapi-host': 'joke3.p.rapidapi.com',
|
||||
'x-rapidapi-key': process.env.RAPIDAPI_API_KEY,
|
||||
useQueryString: true
|
||||
},
|
||||
// ttl: 18000 //5 hours
|
||||
};
|
||||
|
||||
request(options, function (error, response, body) {
|
||||
// console.log(response)
|
||||
|
||||
if (error) throw new Error(error);
|
||||
let jsonBody = JSON.parse(body)
|
||||
bot.sendMessage(msg.chat.id, jsonBody.content)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
7
data/bot/welcomeMesage.js
Normal file
7
data/bot/welcomeMesage.js
Normal file
@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
welcomeMessage: (bot, msg, logger) => {
|
||||
const newUserMention = "<a href=\"tg:\/\/user?id=" + msg.new_chat_member.id + "\">@" + msg.new_chat_member.first_name + "<\/a>"
|
||||
bot.sendMessage(msg.chat.id, "Hello " + newUserMention + ", Welcome to " + channel + ". \n\nPlease PM me @" + process.env.BOT_USERNAME + " to find out all needed information about our service before asking an admin or posting in here.\n\nIf you do ask questions, and its obvious you have not spoken to me, you will be booted from the room. This is IPTV, admins don't have time for hand holding.!!!", { parse_mode: "HTML" });
|
||||
logger.info("ID - " + msg.new_chat_member.id + " First Name - " + msg.new_chat_member.first_name + " joined the group");
|
||||
}
|
||||
};
|
57
data/group/subs.json
Normal file
57
data/group/subs.json
Normal file
@ -0,0 +1,57 @@
|
||||
[
|
||||
{
|
||||
"SUB": "VIP",
|
||||
"COST": 25,
|
||||
"STATUS": 1
|
||||
},
|
||||
{
|
||||
"SUB": "Premium Plus",
|
||||
"COST": 30,
|
||||
"STATUS": 1
|
||||
},
|
||||
{
|
||||
"SUB": "Old Premium",
|
||||
"COST": 17,
|
||||
"STATUS": 1
|
||||
},
|
||||
{
|
||||
"SUB": "Gold",
|
||||
"COST": 13,
|
||||
"STATUS": 1
|
||||
},
|
||||
{
|
||||
"SUB": "Bronze",
|
||||
"COST": 10,
|
||||
"STATUS": 1
|
||||
},
|
||||
{
|
||||
"SUB": "KDB",
|
||||
"COST": 14,
|
||||
"STATUS": 1
|
||||
},
|
||||
{
|
||||
"SUB": "Technoid",
|
||||
"COST": 13,
|
||||
"STATUS": 1
|
||||
},
|
||||
{
|
||||
"SUB": "Bluemoon",
|
||||
"COST": 15,
|
||||
"STATUS": 1
|
||||
},
|
||||
{
|
||||
"SUB": "SOL",
|
||||
"COST": 10,
|
||||
"STATUS": "X"
|
||||
},
|
||||
{
|
||||
"SUB": "Gambler",
|
||||
"COST": "X",
|
||||
"STATUS": 1
|
||||
},
|
||||
{
|
||||
"SUB": "All of em",
|
||||
"COST": "X",
|
||||
"STATUS": "X"
|
||||
}
|
||||
]
|
@ -1,9 +0,0 @@
|
||||
let logger = require('perfect-logger');
|
||||
|
||||
// Configure Settings
|
||||
logger.initialize('FrontEndDriver', {
|
||||
logLevelFile: 0, // Log level for file
|
||||
logLevelConsole: 0, // Log level for STDOUT/STDERR
|
||||
logDirectory: 'logs/', // Log directory
|
||||
customBannerHeaders: 'This is a custom banner' // Custom Log Banner
|
||||
});
|
895
package-lock.json
generated
895
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -14,12 +14,18 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"array-to-table": "^1.0.1",
|
||||
"cached-request": "^2.0.1",
|
||||
"dotenv": "^8.2.0",
|
||||
"fs": "0.0.1-security",
|
||||
"html-table-builder": "^1.0.1",
|
||||
"node-html-to-image": "^2.1.1",
|
||||
"node-telegram-bot-api": "^0.50.0",
|
||||
"obj-array-table": "^1.0.17",
|
||||
"perfect-logger": "^2.0.1",
|
||||
"request": "^2.88.2",
|
||||
"require-dir": "^1.2.0",
|
||||
"table": "^5.4.6",
|
||||
"throttled-request": "^0.1.1"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user