1.0.8 • Published 4 years ago

showdown.js v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Showdown.js

npm

Testing Dependency Status devDependency Status style: prettier

About

Showdown.js is a module that allows you to easily create a bot for Pokemon Showdown

Instalation

    npm install showdown.js

Example

'use strict';
const Client = require('showdown.js').Client;

let client = new Client({
	name: 'yourbotname',
	pass: 'yourpassword',
	baseRooms: ['lobby'],
	port: 8000,
	host: 'sim.smogon.com',
});

client.on('message', msg => {
	if (msg.content === 'ping') {
		msg.source.send('Pong!');
	}
});
client.connect();
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago