Socket
Book a DemoInstallSign in
Socket

jackbot-discord

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

jackbot-discord

like my website (jackbot) but it works on discord

14.0.0
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

jackbot-discord

kinda makes it easier to make bots on discord

okay so here's a quick bot just to show how easy it is

Simple bot (Hello, world!)

// bot.ts
import Bot from 'jackbot-discord'
import { Message } from 'discord-js'

const bot = new Bot(
  {
    // The command list
    repeat (message: Message, args: string[]) {
      // Repeats what the user typed after
      message.channel.send(args.join(' '))
    }
  },
  {
    prefix: '-' // what's before every command
  }
)

bot.login('Your bot token here')

After opening the bot, do -repeat Hello, world!

Advanced bot

// bot.ts
import Bot from 'jackbot-discord'
import { Message } from 'discord-js'

const bot = new Bot(
  {
    // The command list
    "Can you please say": (message: Message, args: string[])=> {
      // Repeats what the user typed after
      message.channel.send(args.join(' '))
    }
  },
  {
    prefix: '' // what's before every command
  }
)

bot.login('Your bot token here')

After opening the bot, do Can you please say Hello, world!

Keywords

discord

FAQs

Package last updated on 25 Mar 2020

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.