1.2.0 • Published 8 months ago

privam v1.2.0

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

Privam

privam is an official Node.js package that provides a simple way to create and interact with a bot for the Privam service (https://privam.top/).

Official Documentation

https://privam.top/docs

Installation

You can install privam using npm:

npm install privam

Usage

const { PrivamBot } = require("./privam");
const bot = new PrivamBot(
  "bot-token"
);

bot.event("logged", (info) => {
  console.log(`Logged in as ${info.name}`);
});

bot.event("error", (data) => {
  console.log(`error: ${data.error}`);
});

bot.new("hello", (message) => {
  console.log(`received: ${message.message}`); 
  bot.send(message.sender, 'hi!');
});

bot.start();

Contributing

Contributions are welcome! Please contact @ofhm on discord/@vnti on privam if you have any suggestions or improvements.

License

This package is open source and available under the MIT License.

Remember to replace "your-token-here" with an actual token in the usage example.

1.2.0

8 months ago

1.1.0

9 months ago

1.0.0

9 months ago