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

disceasy

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disceasy - npm Package Compare versions

Comparing version 0.0.8-beta to 0.0.9-beta

19

functions/action.message.wrapper.js

@@ -11,7 +11,18 @@ const { Message } = require("discord.js");

module.exports = (message, action) => {
const replyRegex = /reply\[message="(.+)"\]/;
if (action.match(replyRegex)) {
const match = action.match(replyRegex);
message.reply(match[1])
const ActionRegex = /([A-Za-z0-9]+)\[[A-Za-z0-9]+="(.+)"\]/;
const match = action.match(ActionRegex);
const functions = {
reply: (msgToReply) => {
message.reply(msgToReply)
},
send: (msgToSend) => {
message.channel.send(msgToSend)
}
}
if (match) {
console.log(match);
if (match[1] in functions)
functions[match[1]](match[2]);
}
}
{
"name": "disceasy",
"version": "0.0.8-beta",
"version": "0.0.9-beta",
"description": "Um pacote simples para produzir bots Discord sem complicação.",

@@ -5,0 +5,0 @@ "main": "src/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