Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

jackbot-discord

like my website (jackbot) but it works on discord

  • 14.0.0
  • unpublished
  • latest
  • npm
  • Socket score

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

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc