This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#-- Finalidade: Listar o IP e o NOME dos dispositivos conectados à rede | |
#-- Distros...: Debian 9 Stretch, Kali Linux 2017.2 amd64 | |
# Identificação da Distribuição | |
distro=`cat /etc/*-release | grep PRETTY_NAME | cut -d "\"" -f2` | |
echo -e "\n > Distribuição: $distro" | |
# Conexoes | |
echo -e "\n > Pesquisando conexões ativas..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { exec } = require('child_process') | |
function run(cmd) { | |
return new Promise((resolve, reject) => { | |
exec(cmd, (error, stdout, stderr) => { | |
if (error) return reject(error) | |
if (stderr) return reject(stderr) | |
resolve(stdout) | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const db = require(`quick.db`) //chamando a LIVRARIA de database | |
db.fetch(`money`)//fetch = ver o valor dessa database | |
db.add(`money`,10) //add = adicionar o valor que vem depois da virgula | |
db.subtract(`money`,10)//subtract = retira o valor que vem depois da virgula | |
db.set(`money`,10)//set = seta o valor que vem depois da virgula | |
//algumas let's e if's |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
mongodb_container: | |
image: mongo:latest | |
container_name: 'MeuDB' | |
restart: always # iniciar com o servidor | |
environment: | |
#MONGO_INITDB_DATABASE: namebanco | |
MONGO_INITDB_ROOT_USERNAME: usuario |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require("discord.js"); //baixar a lib | |
const client = new Discord.Client(); | |
const config = require("./config.json"); | |
client.on("ready", () => { | |
console.log('Olá mundo') | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require("discord.js"); //baixar a lib | |
const client = new Discord.Client(); | |
const config = require("./config.json"); | |
client.on("ready", () => { | |
console.log('Olá mundo') | |
}) | |
client.on('raw', async dados => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require("discord.js"); //baixar a lib discord.js | |
const client = new Discord.Client(); | |
const config = require("./config.json"); | |
const low = require('lowdb') //banco de dados | |
const FileSync = require('lowdb/adapters/FileSync') | |
const adapter = new FileSync('banco.json') | |
const db = low(adapter) | |
client.on("ready", () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require("discord.js") | |
const client = new Discord.Client() | |
const toApng = require('gif-to-apng') | |
const download = require('download-file') | |
const config = require("./config.json") | |
// instalar as dependencias: download-file, gif-to-apng, uuid | |
client.on("ready", () => { | |
console.log("O Bot foi iniciado"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require("discord.js") | |
const jimp =require("jimp") | |
const client = new Discord.Client() | |
const config = require("./config.json") | |
client.on("ready", () => { | |
console.log(`Bot foi iniciado, com ${client.users.size} usuários, em ${client.channels.size} canais, em ${client.guilds.size} servidores.`); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require("discord.js"); //baixar a lib | |
const client = new Discord.Client(); | |
const config = require("./config.json"); | |
client.on("ready", () => { | |
console.log(`Bot foi iniciado, com ${client.users.size} usuários, em ${client.channels.size} canais, em ${client.guilds.size} servidores.`); | |
client.user.setPresence({ game: { name: 'comando', type: 1, url: 'https://www.twitch.tv/pedroricardo'} }); | |
//0 = Jogando | |
// 1 = Transmitindo |
NewerOlder