Move text files to static/
This commit is contained in:
parent
7527fb6a1a
commit
ce9611f079
4
bot.js
4
bot.js
|
@ -3,7 +3,7 @@ const { BOT_API_KEY, FEEDBACK_ID, UGOKI_ROOT } = process.env;
|
|||
const fs = require("fs").promises;
|
||||
const commands = require("./commands");
|
||||
const axios = require("axios");
|
||||
const roleplay = require("./roleplay.json");
|
||||
const roleplay = require("./static/roleplay.json");
|
||||
|
||||
const bot = new Telegraf(BOT_API_KEY);
|
||||
bot.catch((err) => console.log(err));
|
||||
|
@ -15,7 +15,7 @@ const data = [
|
|||
"commands_list",
|
||||
"words"
|
||||
].map(file =>
|
||||
fs.readFile(file + ".txt", "utf-8")
|
||||
fs.readFile("static/" + file + ".txt", "utf-8")
|
||||
.then(list =>
|
||||
list.split("\n")));
|
||||
|
||||
|
|
|
@ -1,81 +0,0 @@
|
|||
dependencies:
|
||||
axios: 0.18.0
|
||||
telegraf: 3.27.1
|
||||
packages:
|
||||
/@types/node/10.12.24:
|
||||
dev: false
|
||||
resolution:
|
||||
integrity: sha512-GWWbvt+z9G5otRBW8rssOFgRY87J9N/qbhqfjMZ+gUuL6zoL+Hm6gP/8qQBG4jjimqdaNLCehcVapZ/Fs2WjCQ==
|
||||
/axios/0.18.0:
|
||||
dependencies:
|
||||
follow-redirects: 1.6.1
|
||||
is-buffer: 1.1.6
|
||||
dev: false
|
||||
resolution:
|
||||
integrity: sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=
|
||||
/debug/3.1.0:
|
||||
dependencies:
|
||||
ms: 2.0.0
|
||||
dev: false
|
||||
resolution:
|
||||
integrity: sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==
|
||||
/debug/4.1.1:
|
||||
dependencies:
|
||||
ms: 2.1.1
|
||||
dev: false
|
||||
resolution:
|
||||
integrity: sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
|
||||
/follow-redirects/1.6.1:
|
||||
dependencies:
|
||||
debug: 3.1.0
|
||||
dev: false
|
||||
engines:
|
||||
node: '>=4.0'
|
||||
resolution:
|
||||
integrity: sha512-t2JCjbzxQpWvbhts3l6SH1DKzSrx8a+SsaVf4h6bG4kOXUuPYS/kg2Lr4gQSb7eemaHqJkOThF1BGyjlUkO1GQ==
|
||||
/is-buffer/1.1.6:
|
||||
dev: false
|
||||
resolution:
|
||||
integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==
|
||||
/ms/2.0.0:
|
||||
dev: false
|
||||
resolution:
|
||||
integrity: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
|
||||
/ms/2.1.1:
|
||||
dev: false
|
||||
resolution:
|
||||
integrity: sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==
|
||||
/node-fetch/2.3.0:
|
||||
dev: false
|
||||
engines:
|
||||
node: 4.x || >=6.0.0
|
||||
resolution:
|
||||
integrity: sha512-MOd8pV3fxENbryESLgVIeaGKrdl+uaYhCSSVkjeOb/31/njTpcis5aWfdqgNlHIrKOLRbMnfPINPOML2CIFeXA==
|
||||
/sandwich-stream/2.0.2:
|
||||
dev: false
|
||||
engines:
|
||||
node: '>= 0.10'
|
||||
resolution:
|
||||
integrity: sha512-jLYV0DORrzY3xaz/S9ydJL6Iz7essZeAfnAavsJ+zsJGZ1MOnsS52yRjU3uF3pJa/lla7+wisp//fxOwOH8SKQ==
|
||||
/telegraf/3.27.1:
|
||||
dependencies:
|
||||
'@types/node': 10.12.24
|
||||
debug: 4.1.1
|
||||
node-fetch: 2.3.0
|
||||
sandwich-stream: 2.0.2
|
||||
telegram-typings: 3.6.1
|
||||
dev: false
|
||||
engines:
|
||||
node: '>=6.2.0'
|
||||
resolution:
|
||||
integrity: sha512-RQUnuNAEEWcLhRap81qwGUUqAy1KcvqANnA0G3pzZqFkhMe6LrTk5lVi9tdOaF0Ud/yOx5fdx0rNPYfiB27Z+w==
|
||||
/telegram-typings/3.6.1:
|
||||
dev: false
|
||||
resolution:
|
||||
integrity: sha512-njVv1EAhIZnmQVLocZEADYUyqA1WIXuVcDYlsp+mXua/XB0pxx+PKtMSPeZ/EE4wPWTw9h/hA9ASTT6yQelkiw==
|
||||
registry: 'https://registry.npmjs.org/'
|
||||
shrinkwrapMinorVersion: 9
|
||||
shrinkwrapVersion: 3
|
||||
specifiers:
|
||||
axios: ^0.18.0
|
||||
telegraf: ^3.27.1
|
Loading…
Reference in New Issue