Giter Site home page Giter Site logo

itszaynmalik / lgcord.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tga098/lgcord.js

0.0 0.0 0.0 106 KB

A Nodejs Discord API wrapper. This is a small library that allows you to interact with Discord API to make discord bots

JavaScript 100.00%

lgcord.js's Introduction

Built with Love Made with Javascript

NPM version NPM downloads

npm installnfo

A Nodejs Discord API wrapper. This is a library that allows you to interact with Discord API to make discord bots

Installation

Nodejs 16.9.0 or higher is needed

npm install lgcord.js

Usage

Make a basic bot using lgcord.js

const { Client, INTENTS } = require("lgcord.js")


const client = new Client([
    INTENTS.GUILDS, INTENTS.GUILD_MESSAGES, INTENTS.GUILD_MESSAGE_REACTIONS
])

client.on('ready', ready => {
    console.log(`Logged in as ${ready.user.username}`);
});

client.login("bot token here");

Events Available:

  • messageCreate reply to a message or get info a message sent/receieved by the bot
  • messageDelete get info of a message when deleted
  • messageUpdate get info of a message if it gets updated/edited

MORE EVENTS DOCS WILL BE ADDED

Embed Example:

const { DiscordEmbed } = require("lgcord.js")

let embed = new DiscordEmbed()
.setTitle("Hello World")
.setColor("Color")
.setDescription('Bot using lgcord.js')
.setFooter('Footer')
.setTimestamp()

lgcord.js's People

Contributors

tga098 avatar itszaynmalik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.