Показать сообщение отдельно
  #7 (permalink)  
Старый 09.08.2018, 15:15
Аватар для SorryHanzoMain
Аспирант
Отправить личное сообщение для SorryHanzoMain Посмотреть профиль Найти все сообщения от SorryHanzoMain
 
Регистрация: 01.08.2018
Сообщений: 34

Сообщение от Nexus Посмотреть сообщение
SorryHanzoMain,
sql.get('SELECT * FROM questions WHERE question LIKE ?',[message]).then(res=>{
    console.log(sql.constructor.name,...arguments);
});

Что в консоли отобразится?
Database {} function require(path) {
try {
exports.requireDepth += 1;
return mod.require(path);
} finally {
exports.requireDepth -= 1;
}
} Module {
id: '.',
exports: {},
parent: null,
filename: 'C:\\Games\\Bot\\index.js',
loaded: true,
children:
[ Module {
id: 'C:\\Games\\Bot\\node_modules\\discord.js\\src\\in dex.js',
exports: [Object],
parent: [Circular],
filename: 'C:\\Games\\Bot\\node_modules\\discord.js\\src\\in dex.js',
loaded: true,
children: [Array],
paths: [Array] },
Module {
id: 'C:\\Games\\Bot\\config.json',
exports: [Object],
parent: [Circular],
filename: 'C:\\Games\\Bot\\config.json',
loaded: true,
children: [],
paths: [Array] },
Module {
id: 'C:\\Games\\Bot\\config_quest.json',
exports: [Object],
parent: [Circular],
filename: 'C:\\Games\\Bot\\config_quest.json',
loaded: true,
children: [],
paths: [Array] },
Module {
id: 'C:\\Games\\Bot\\node_modules\\sqlite\\main.js',
exports: [Object],
parent: [Circular],
filename: 'C:\\Games\\Bot\\node_modules\\sqlite\\main.js',
loaded: true,
children: [Array],
paths: [Array] },
Module {
id: 'C:\\Games\\Bot\\node_modules\\overwatch-js\\index.js',
exports: [Object],
parent: [Circular],
filename: 'C:\\Games\\Bot\\node_modules\\overwatch-js\\index.js',
loaded: true,
children: [Array],
paths: [Array] },
Module {
id: 'C:\\Games\\Bot\\node_modules\\discord-anti-spam\\anti_spam.js',
exports: [Function],
parent: [Circular],
filename: 'C:\\Games\\Bot\\node_modules\\discord-anti-spam\\anti_spam.js',
loaded: true,
children: [],
paths: [Array] } ],
paths:
[ 'C:\\Games\\Bot\\node_modules',
'C:\\Games\\node_modules',
'C:\\node_modules' ] } C:\Games\Bot\index.js C:\Games\Bot
Ответить с цитированием