0.0.1 • Published 6 months ago

javelin v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Javelin

A simple yet powerful Twitch IRC/WebSocket wrapper.

I'll get into filling this out later, gotta stay tuned for now.

Example

While the library is still heavily work-in-progress you can already somewhat create a bot with it.

const { Client } = require('javelin');
const client = new Client({
	oauth: process.env.OAUTH,
	username: 'your_bots_username',
	channels: [
		'#array',
		'#of',
		'#channels',
		'#to',
		'#join'
	]
});

client.on('debug', console.log)
	.on('warn', console.log)
	.on('ready', console.log)
	.on('channel_join', console.log)
	.on('channel_leave', console.log)
	.on('user_join', console.log)
	.on('user_leave', console.log)
	.on('message', message => {
		if (message.content === '!ping') {
			message.channel.send(`Hi, ${message.user}!`);
		}
	});

client.login();

Author

Javelin © iCrawl.
Authored and maintained by iCrawl.

GitHub @iCrawl

0.0.1

6 months ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

12 years ago