2.5.9 • Published 4 years ago

purx v2.5.9

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

Purx NPM version

A NodeJs Discord Library

You will need NodeJS 10.4+. If you need voice support you will also need Python 2.7 and a C++ compiler. Refer to the Getting Started section of the docs for more details.

npm install purx@2.5.9

const purx = require("purx") // import purx npm

purx.up("start", () => { // if the bot started
    console.log(`Bot Has Started`) // Log "Started!"
})

purx.up("error", (err) => { 
    console.error(err); // or your preferred logger
})

purx.up("newMessage" , (msg) => { // if new message
    if(msg.content === "!ping"){
        purx.msgCreate(msg.channel,purx.botPing())
    }
})

purx.connect("Bot Token") // To Login with your bot

2.5.9

4 years ago

2.5.8

4 years ago

2.5.7

4 years ago

2.5.6

4 years ago

2.5.4

4 years ago

2.5.3

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