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();
bot.setConfig({
name: '<any>'
});
bot.newStation([
bot.send('Hey!')
]);
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!');
updateName()
Changes or updates the name of the bot
bot.updateName('<anytext>');
Update
No updates were created.