heybox-bot
v1.0.32
Published
<p align="center"><a href="https://www.heybox.dev" target="_blank" rel="noopener noreferrer"><img width="100" src="https://www.heybox.dev/icon.svg" alt="Heybox Dev logo"></a></p>
Downloads
62
Readme
Quick Start
Install
cd your/project/path
npm i -g heybox-bot
heybox --init
npm i
Configuration
your/project/path/src/define.ts
import { HeyBoxBot } from 'heybox-bot';
import { CommandSource } from 'gugle-command';
import { RawData } from 'ws';
const bot: HeyBoxBot = new HeyBoxBot({ token: 'your token' }); // parse your bot token
class MyBot {
@bot.command('test', '/test')
public test(source: CommandSource) {
source.success('test');
}
}
const myBot: MyBot = new MyBot();
bot.start();
Run
cd your/project/path
npm run dev