heybox-bot
v1.2.44
Published
A heybox chat bot frame
Readme
Quick Start
Install
cd your/project/path
npm i -g heybox-bot
heybox --init
npm iConfiguration
your/project/path/src/define.ts
import { HeyBoxBot } from 'heybox-bot';
import { CommandSource } from 'heybox-bot/command';
import { RawData } from 'ws';
const bot: HeyBoxBot = new HeyBoxBot({ token: 'your token' }); // parse your bot token
new (class MyBot {
@bot.command('/hello')
public test(source: CommandSource) {
source.success('world');
}
})()
bot.start();Run
cd your/project/path
npm run dev