GithubHelp home page GithubHelp logo

miketoth / discord.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from discordjs/discord.js

0.0 2.0 0.0 11.18 MB

A powerful library for interacting with the Discord API

Home Page: http://hydrabolt.github.io/discord.js/

License: Apache License 2.0

JavaScript 100.00%

discord.js's Introduction

discord.js

npm Build Status David npm

NPM

discord.js is a a powerful node.js module that allows you to interact with the Discord API.

Installation

Requires node 6.0.0 and above

npm install --save discord.js
# or, if you don't want voice support:
npm install --save --no-optional discord.js

By default, discord.js uses opusscript when playing audio over voice connections. If you're looking to play over multiple voice connections, it might be better to install node-opus. discord.js will automatically prefer node-opus over opusscript.

Example Usage

const Discord = require('discord.js');
const bot = new Discord.Client();

bot.on('ready', () => {
  console.log('I am ready!');
});

bot.on('message', message => {
  if (message.content === 'ping') {
    message.reply('pong');
  }
});

bot.login('your token');

Links

Contact

Before reporting an issue, please read the documentation. If you can't find help there, you can find help in the Discord API Server.

discord.js's People

Contributors

amishshah avatar abalabahaha avatar meew0 avatar gawdl3y avatar simonschick avatar mnlkrs avatar briantanner avatar aemino avatar nicholastay avatar qeled avatar cryptiklemur avatar merghq avatar enebe-nb avatar bwpikaard avatar hackzzila avatar brussell98 avatar brunomoreira99 avatar eslachance avatar macdja38 avatar technoguyfication avatar guichaguri avatar cking avatar aigachu avatar meanwhile0 avatar calc84maniac avatar zman840 avatar sooyou avatar miketoth avatar petoem avatar meishuu avatar

Watchers

James Cloos avatar  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.