Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

telekit-cmd

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telekit-cmd - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

21

index.js

@@ -73,13 +73,18 @@ /**

if (command) {
if (command.entities[0].type == 'bot_command') {
context.isCommand = true;
context.command = command;
command.name = command.entities[0].name;
command.mention = command.entities[0].mention;
telekit.emit('command', context);
telekit.emit(`/${context.command.entities[0].name}`, context);
if (telekit.command) telekit.command(context);
telekit.middleware.transmit('command', context);
context.isCommand = true;
context.command = command;
return;
telekit.emit('command', context);
telekit.emit(`/${context.command.entities[0].name}`, context);
if (telekit.command) {
telekit.command(context);
}
telekit.middleware.transmit('command', context);
return;
}

@@ -86,0 +91,0 @@

{
"name": "telekit-cmd",
"version": "0.1.1",
"version": "0.1.2",
"description": "This extend module for `telekit` that adds support of commands",

@@ -5,0 +5,0 @@ "main": "index.js",

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