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

discord-eval.js

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

discord-eval.js

An JS eval command for your Discord bots.

  • 1.0.14-final
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

DiscordEval.js

⚠️THIS PACKAGE IS NOT LONGER SUPPORTED, PLEASE USE discord-eval.ts INSTEAD ⚠️

Install

npm install discord-eval.js

Syntax

DiscordEval( code, message )

code :

The code that you emulate
Type : String

message :

The message from which the code comes
Type : Message

Example

Here is the minimum required for your Eval command to work. Think of securing access because a malicious Eval can be devastating for your PC !

const DiscordEval = require('discord-eval.js')
const Discord = require('discord.js')
const client = new Discord.Client()

client.login("token")

client.on('message',async function(message){
	if(message.content.startsWith("js")){
		let code = message.content.replace("js","").trim()
		await DiscordEval(code,message)
	}
})

Keywords

FAQs

Package last updated on 03 Dec 2020

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