pixelcord

A simple Discord Javascript Library made in one File!

Usage no npm install needed!

<script type="module">
  import pixelcord from 'https://cdn.skypack.dev/pixelcord';
</script>

README

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!