New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodeflayer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodeflayer

The official module for creating node bots

  • 1.0.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 24 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc