1.3.53 • Published 4 years ago

discord.js-simple v1.3.53

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Welcome to discord.js-simple Docs!

INFO: This package is designed for discord.js, if you do not have the package installed (discord.js) this package is pointless Join the support server

Usage:

//Define bot stuff up there.
const djs = require('discord.js-simple'); //Require the module

//Simple <Client>.on message
<Client>.on('message',message=>{
    if(message.content.startsWith('!embed')){
     //Simple embed
    message.channel.send(djs.Embed('Text','Desc','56789')) //This will get the embed function 
    //Arg 1 = Title, Arg 2 = Description, Arg 3 = Hex colour code
    //Can be executable arguments.
    }
    if(message.content.startsWith('!eval')){
    djs.Eval('your discord id',message)
    //Eval command
    }
    if(message.content.startsWith('!send')){
    djs.Send(message,'what you want to send')
    //Send a message
    }
    if(message.content.startsWith('!ping')){
    djs.Send(message,djs.Ping(message))
    //Display the ping
    //Using a previous function.
    }
    if(message.content.startsWith('!uptime')){
    djs.Send(message,`${djs.Uptime(message)}`)
    //Get your bots uptime.
    }
    if(message.content.startsWith('!say')){
    djs.Say(message,5)
    //The 5 is the length of the command, this has to include the prefix and a space after the command.
    //Sends a message.
    //A variation of the send command just made specifically for chat.
    }
    if(message.content.startsWith('!exec')){
    djs.Exec('your discord id',message)
    //We need your id so you can be the only who can use it.
    //No one else can you it other then the user's id you put in.
    //Simple exec command.
    }

});

//Bot login stuff

Changelog Version 1.1.0 Added a Ping command. Working eval command. Version 1.2.0 Added a send command. Added an embed command.

1.3.50

4 years ago

1.3.53

4 years ago

1.3.51

4 years ago

1.3.52

4 years ago

1.3.49

4 years ago

1.3.48

4 years ago

1.3.47

4 years ago

1.3.46

4 years ago

1.3.45

4 years ago

1.3.44

4 years ago

1.3.43

4 years ago

1.3.42

4 years ago

1.3.41

4 years ago

1.3.40

4 years ago

1.3.39

4 years ago

1.3.36

4 years ago

1.3.37

4 years ago

1.3.38

4 years ago

1.3.28

4 years ago

1.3.29

4 years ago

1.3.27

4 years ago

1.3.31

4 years ago

1.3.32

4 years ago

1.3.30

4 years ago

1.3.35

4 years ago

1.3.33

4 years ago

1.3.34

4 years ago

1.3.26

4 years ago

1.3.25

4 years ago

1.3.24

4 years ago

1.3.23

4 years ago

1.3.22

4 years ago

1.3.17

4 years ago

1.3.18

4 years ago

1.3.15

4 years ago

1.3.16

4 years ago

1.3.19

4 years ago

1.3.20

4 years ago

1.3.21

4 years ago

1.3.14

4 years ago

1.3.13

4 years ago

1.3.12

4 years ago

1.3.1

4 years ago

1.3.11

4 years ago

1.3.0

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.19

4 years ago

1.1.18

4 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago