You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

discord-eval.js

An JS eval command for your Discord bots.

1.0.14-final
unpublished
latest
Source
npmnpm
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

eval

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