Coder Social home page Coder Social logo

node-discordbot's Introduction

node-discordbot

This is a bot for the discord communication tool. Summary

This bot uses a dynamic command system to handle new functionality. Currently these commands/functions are integrated:

  • Joining of Voice Channels
  • Spotify Playback of Tracks and Playlists

The codebase is a mess right now and I'd not advise to learn from it or using it as a reference for your own project. Some of the code has been thrown together from the examples of the respective libraries.

Installation

First of all you need the latest stable node release to run this app. Check your local version with:

$ node -v

After that checkout this repo and install the dependencies with:

$ npm install

There will probably some compiling errors and warnings, but it should work anyways. Start the bot with the following command:

$ node app.js SPOTIFYUSERNAME SPOTIFYPASSWORD DISCORDUSERNAME DISCORDPASSWORD

It should be noted that while the used Spotify library works with Premium and free accounts, you cannot use accounts that were created with via a Facebook login.

TODO/ISSUES

  • Crashing on direct messages
  • Detect double assigned plugins
  • Add native playlists, where users cann add songs (WIP)
  • Update track restrictions
  • configs, logs and status output into discord
  • easier playback for spotify command (e.g. play chill) maybe specified in config
  • recurseAlternatives for country checking
  • add purge + mute
  • add permissions
  • add posts/time interval (WIP)

DOCKER

Build the docker container: sudo docker build -t "node-discordbot" .

sudo docker ps -a | awk '{ print $1,$2 }' | grep IMAGENAME | awk '{print $1 }' | xargs -I {} sudo docker stop {}

Remove all docker containers of the specified image

sudo docker ps -a | awk '{ print $1,$2 }' | grep IMAGENAME | awk '{print $1 }' | xargs -I {} sudo docker rm {} Source: http://linuxconfig.org/remove-all-containners-based-on-docker-image-name

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.