Skip to content

A Discord Library, tailored to @OfficiallyLost (hence LostCord), which is public and available to everyone.

Notifications You must be signed in to change notification settings

OfficiallyLost/LostCord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A NodeJS Discord Library for Discord

LostCord is a promise based, object-orientated and easily usable Discord Library, mainly orientated around myself, but can be used by everyone. An understanding of NodeJS is required.

Installation

npm install lostcord

Examples

const LostCord = require('lostcord');
const client = new LostCord('YOUR_TOKEN');

client.on('messageCreate', async (message) => {
    if (!message.raw.author.bot) return;
    
    if (message.raw.content === '!ping') {
        (await message.channel).createMessage({ content: 'Pong!' });
    }
});

client.connect();
const LostCord = require('lostcord');
const client = new LostCord('YOUR_TOKEN');

client.on('messageCreate', async (message) => {
    if (!message.raw.author.bot) return;
   
   if (message.raw.content === '!invite') {
        try {
            (await message.channel).createMessage({ content: client.invite })
            client.log('someone wants me :D')
        } catch (error) {
            // this won't happen but just showing <Client>.error
            client.error(error)
        }
   }
});

Help

If you are struggling / need help with LostCord, feel free to reach out to me, just join my discord server

Contributing

Fork, code, submit PR.

About

A Discord Library, tailored to @OfficiallyLost (hence LostCord), which is public and available to everyone.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published