1.3.53 • Published 5 years ago

discord.js-simple v1.3.53

Weekly downloads
-
License
ISC
Repository
-
Last release
5 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

5 years ago

1.3.53

5 years ago

1.3.51

5 years ago

1.3.52

5 years ago

1.3.49

5 years ago

1.3.48

5 years ago

1.3.47

5 years ago

1.3.46

5 years ago

1.3.45

5 years ago

1.3.44

5 years ago

1.3.43

5 years ago

1.3.42

5 years ago

1.3.41

5 years ago

1.3.40

5 years ago

1.3.39

5 years ago

1.3.36

5 years ago

1.3.37

5 years ago

1.3.38

5 years ago

1.3.28

5 years ago

1.3.29

5 years ago

1.3.27

5 years ago

1.3.31

5 years ago

1.3.32

5 years ago

1.3.30

5 years ago

1.3.35

5 years ago

1.3.33

5 years ago

1.3.34

5 years ago

1.3.26

5 years ago

1.3.25

5 years ago

1.3.24

5 years ago

1.3.23

5 years ago

1.3.22

5 years ago

1.3.17

5 years ago

1.3.18

5 years ago

1.3.15

5 years ago

1.3.16

5 years ago

1.3.19

5 years ago

1.3.20

5 years ago

1.3.21

5 years ago

1.3.14

5 years ago

1.3.13

5 years ago

1.3.12

5 years ago

1.3.1

5 years ago

1.3.11

5 years ago

1.3.0

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.1

5 years ago

1.1.0

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

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago