Thanks to visit codestin.com
Credit goes to github.com

Skip to content

🤖 Declarative Discord bot framework. Build your first bot in 5 minutes with 3 lines of code!

License

Notifications You must be signed in to change notification settings

TomerRon/cordless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 cordless

Opinionated framework for creating Discord bots with minimal boilerplate

cordless is a simple wrapper for discord.js that allows you to create extensive and extensible Discord bots.

yarn add cordless
npm i cordless

Basic Usage

import { init, BotFunction } from 'cordless'

const ping: BotFunction = {
  condition: (msg) => msg.content === 'ping',
  callback: (msg) => msg.reply('pong'),
}

init({ functions: [ping] }).login(process.env.TOKEN)

Contributing

Clone and install the dependencies:

git clone https://github.com/TomerRon/cordless.git
cd cordless
yarn

Run the linter and tests:

yarn lint
yarn test

For local development, we recommend installing yalc. Publish your changes locally with:

yalc publish

You can then test your changes in a local app using:

yalc add cordless

License

This project is licensed under the ISC License - see the LICENSE file for details.

About

🤖 Declarative Discord bot framework. Build your first bot in 5 minutes with 3 lines of code!

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •