1.0.0 • Published 6 years ago

pixelcord v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

PixelCord

A simple Discord Javascript Library made in one File!

Usage

Here's a simple explanation on how to use this WIP Library!

// Require the Package
const PixelCord = require('pixelcord');
// Make a new Client
const client = new PixelCord.Client({ token: 'Your Bot Token' });

// Make a ready event, which will trigger when the bot logs in!
client.on('ready', () => {
    console.log(`Logged in as ${client.user.username}`);
});

// Make a message event, which will trigger if a message is sent!
client.on('message', (msg) => {
    if (message.content === 'ping') {
        client.sendMessage(message.channel_id, 'Pong!');
    }
});

// Connect the bot to Discord
client.connect();

NOTICE: THIS IS A WIP LIBRARY WHICH MEANS IT'S NOT COMPLETE AND MAY CONTAIN NOT FULLY HANDLED ERRORS AND MORE!