1.0.14-final • Published 5 years ago

discord-eval.js v1.0.14-final

Weekly downloads
14
License
ISC
Repository
github
Last release
5 years ago

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)
	}
})
1.0.14-final

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.9

5 years ago

1.0.10

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago