2.5.9 • Published 5 years ago

purx v2.5.9

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

5 years ago

2.5.8

5 years ago

2.5.7

5 years ago

2.5.6

5 years ago

2.5.4

5 years ago

2.5.3

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