The offical self-bot library for octii.chat using the user API.
The prefered package manager is yarn but npm can be used. To install simply run:
yarn add @innatical/octii.ts
import { Client, Command, Message } from 'octii.ts'
class Bot extends Client {
constructor() {
super('!', process.env.BOT_TOKEN!)
}
@Command
async ping(msg: Message) {
await msg.channel.send('Pong!')
}
}
new Bot().run()
Soon™
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.