2.5.9 • Published 3 years ago

purx v2.5.9

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

3 years ago

2.5.8

3 years ago

2.5.7

3 years ago

2.5.6

3 years ago

2.5.4

3 years ago

2.5.3

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago