Socket
Socket
Sign inDemoInstall

bot-creator-v12

Package Overview
Dependencies
303
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bot-creator-v12

Assim fica mais fácil a criação de bots pro discord.


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

bot-creator-v12

Assim fica mais fácil a criação de bots pro discord.

npm install bot-creator-v12
yarn add bot-creator-v12 (se você estiver usando yarn)

Exemplo (com mongodb)

const bot = require('bot-creator-v12')
const token = 'SEU_TOKEN_AQUI'
const url = 'SUA_URL_MONGODB'
bot.getPing()

bot.setURL(url)
//criação dos comandos
let name = 'test'
let resposta = '**exemplo:**\n\ndescrição'
let desc = 'descrição do comando'
let type = 'embed' // o type pode ser embed ou message
let prefix = '!' // seu prefixo
bot.createCommand(name, desc, type, resposta)
bot.loadCommands(prefix)

//depois de fazer tudo, é só da start e setar o status do seu bot!
bot.login(token)
bot.setStatus('seu status aqui.')
bot.setWelcome('SERVIDOR_ID', 'CANAL_ID', type, response)

Exemplo (com quick.db)

const bot = require('bot-creator-v12')
const token = 'SEU_TOKEN_AQUI' // [ NECESSÁRIO ]
bot.getPing()
//criação dos comandos
let name = 'test'
let response = '**exemplo:**\n\ndescrição'
let desc = 'descrição do comando'
let type = 'embed' // o type pode ser embed ou message
let prefix = '!' // seu prefixo
bot.createCommand(name, desc, type, response)
bot.loadCommands(prefix)

//depois de fazer tudo, é só da start e setar o status do seu bot!
bot.login(token)
bot.setStatus('seu status aqui.')
bot.setWelcome('SERVIDOR_ID', 'CANAL_ID', type, response)

MÉTODOS:

Criar comandos

let name = 'test'
let desc = 'descrição'
let type = 'embed' // ou message
let response = '**Exemplo:**\n\ndescrição e etc...'
bot.createCommand(name, desc, type, response)

Carregar comandos

let prefix = '!'
bot.loadCommands(prefix)

setar o status do bot

let status = 'Sou apenas um bot para o discord!'
bot.setStatus(status)

Fazer login

bot.login(token)

Setar canal de entrada

let response = '**exemplo:**\n\ndescrição'
let type = 'embed' // o type pode ser embed ou message
bot.setWelcome('SERVIDOR_ID', 'CANAL_ID', type, response)```

Ligar requests

bot.getPing()

Ver versão instalada

bot.version()

Comandos já incluídos

say - digite algo no chat!
help - veja os comandos

Em breve vou adicionar mais funções, fiquem ligados!

Keywords

FAQs

Last updated on 07 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc