1.0.1 • Published 2 years ago

nodeflayer v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Create node || console bots with an easy wrapper and is free to use in TypeScript and JavaScript.

Get started by installing the wrapper:

npm install nodeflayer@latest

Example code:

const Nodeflayer = require('nodeflayer');

let bot = new Nodeflayer(); // Defines a new instance of Nodeflayer bots

bot.setConfig({
  name: '<any>'
}); // Sets the bot config

bot.newStation([
  bot.send('Hey!')
]); // Creates a station so your code does not get messy

API

constructor()

Constructors are started with a new keyword which has an example below:

new Nodeflayer();

setConfig()

Configs are settings for the bot that can be changed

bot.setConfig({
  name: '<any>'
});

newStation()

Stations are created for the wrapper in order to keep the codes safe in a placeholder.

bot.newStation([
  bot.send('Hey!')
]);

Other Functions

Other functions that aren't used in the main code

removeConfig()

Removes or resets the bot config

bot.removeConfig();

sendCore()

Sends message from a core

bot.sendCore('Hey!'); // [Core core] Hey!

updateName()

Changes or updates the name of the bot

bot.updateName('<anytext>');

Update

No updates were created.

1.0.1

2 years ago

1.0.0

2 years ago