It's the TypeScript version of Bee which was written in pure JavaScript ;
re-written from scratch to be more tidy and easy-to-read.
You can find utility programs (commands) in src/bin
directory, configurations in src/config
and
other directories at src
folder.
a list of other bots and third party softwares of Hack chat can be found at Third party software List.
Change the credential files inside src/config
folder in order to customize the bot.
go to
config/keys.ts
, and then just comment out the wholekeys
object and uncomment the import:
import keys from './debug';
/* const keys = {
trip: ..,
api_key: { .. }
} */
In order to build and run the project:
$ npm start
alternatively you can first build:
$ npm run build
Then run the bot:
$ npm run bot
- art
- astro
- bee
- countryInfo
- dog
- echo
- feat
- help
- holiday
- ipinfo
- music
- proxy
- radar
- say
- system
class MyUtilityProgram { }
import Command from '../interfaces/Command';
class MyUtilityProgram extends Command {
Process() {
this.output = "Hello world!";
this.Send(this.output);
}
}
// import Command from '../interfaces/Command';
class MyUtilityProgram /* extends Command */ {
Process() {
// get json from server ...
// process data ...
this.Send(this.output) // return output
}
}
import API from '../API/< My API >'
import Command from '../interfaces/Command';
class MyUtilityProgram /* extends Command */ implements API.IAPI {
Process(): void {
// get json from server ...
// process data ...
this.Send(this.output) // return output
}
}
- LaTeX module
- implement HandleJoin & HandleLeave at
IncomingDataHandler.ts
- implement whisper, emote and warn at
IncomingDataHandler.ts
- function for escaping hack chat characters