GithubHelp home page GithubHelp logo

jaaiden / spotibot Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 4.06 MB

A Discord selfbot that displays your currently playing track in Spotify among other features!

License: GNU General Public License v3.0

JavaScript 99.00% Batchfile 1.00%
discord-js spotify selfbot-for-discord selfbot-discord now-playing

spotibot's Introduction

spotibot

Displays your current track from Spotify as your game in Discord!

Member List Preview

User Information Preview

How to install

First you will need NodeJS installed on your PC - You can get it at nodejs.org (Version 6 is perfectly fine and recommended)

Next, you will need to copy your Discord client login token from your desktop app/browser:

  • Press Ctrl+Shift+I to open the Developer Tools or go to View > Developer > Developer tools
  • Click on the "Application" tab on the right side (this may be hidden, just press the ">>" button and it should be in the list)
  • On the left sidebar, click the arrow to the left of "Local storage" and then click the entry with discordapp.com
  • Double-click the data to the left of the "token" field and copy (Ctrl+C) it to your clipboard. DO NOT SHARE THIS TOKEN!
  • Pase the token in config.json in the token field. Make sure to remove any extra double quotation marks that appear.
  • Run install.bat on Windows, or on Linux/Mac open a terminal in the spotibot directory and run npm install
  • Once that process completes, make sure Spotify is open and a song is playing, and run run.bat on Windows or node bot.js on Linux/Mac!

To close out of the bot while it's running, just press Ctrl+C in the Terminal/Command Prompt window!

Configuration

spotibot's configuration file (config.json) has a few different settings you can change to personalize the bot.

prefix - The prefix needed to run commands in the client. This can be any single character. (Avoid using @) enabled_extensions - This list defines what extensions to use when running the bot. A few extensions come pre-packaged with spotibot, and more extensions can be added as needed.

Extending spotibot

spotibot can load extensions from the ./extensions folder. These are simple JS modules that provide additional functionality to spotibot. For example, songinfo.js allows you to send an embed to the current channel with your current track information in addition to the album art of the song.

All extensions should follow the same naming schemes and principles shown in the provided extensions, otherwise they will not be called when needed!

Known Issues

  • Bot crashing when user is on a private session on Spotify.
  • Bot crashing when streamer mode is on within discord.
  • The bot will not show you as playing the current song on Spotify on your own discord client, however other people will see it.

Credits

Disclaimer: spotibot is a recreation of wsmigielski's own DiscordSpotifyBot project which was initially extended on and eventually rewritten. If you like this project then make sure to head on over to his project and give it a like!

spotiboy utilizes the following packages to function:

spotibot's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

spotibot's Issues

ECONNREFUSED 127.0.0.1:4370 error

I keep getting
{ Error: connect ECONNREFUSED 127.0.0.1:4370 at Object._errnoException (util.js:1024:11) at _exceptionWithHostPort (util.js:1046:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 4370 }
when i run the run.bat file

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.