1.0.4 • Published 3 years ago

@nepgfurmixpro/chatclient.js v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

A Bot Client for my Chat Client https://chat-client.nepgfurmixpro.repl.co/

Creating a client

const ChatClient = require('@nepgfurmixpro/chatclient.js')
const Client = new ChatClient.Client();

Login as whatever username

Client.login('A Bot');

Client.on("ready", (client) => {
  console.log(client.username)
})

Recieve a message

Client.on("message", (message) => {
  console.log(message)
})

See when a user joins

Client.on("userJoin", (join) {
  console.log(join);
})