name="items[]"
request.POST.getlist('items[]')
const Discord = require('discord.js');
const client = new Discord.Client();
let numPlayers;
Gamedig.query({
type: 'game',
host: '192.168.0.100',
port: '2306'
}).then((state) => {
numPlayers = state.raw.numplayers;
ready();
}).catch((error) => {
console.log("Server is offline" + error);
})
function ready() {
client.on('ready', () => {
console.log("online2: " + numPlayers);
});
}
client.login('hhhhhhhhhhhhhh')