GithubHelp home page GithubHelp logo

thurdi / tempo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netfloex/tempo-ts

0.0 1.0 0.0 1.08 MB

A simple Discord music bot that can play Soundcloud, Youtube or Spotify tracks.

Home Page: https://tempo.g-vm.nl

License: MIT License

TypeScript 99.37% Shell 0.25% Dockerfile 0.38%

tempo's Introduction

Tempo is a Discord music bot, written in TypeScript.

Installation

Docker

Using a docker-compose.yml:

version: '3'
services:
  tempo:
    depends_on: [db]
    image: guusvanmeerveld/tempo
    container_name: tempo
    environment:
      # Optional tokens, function will be disabled if token isn't provided
      YOUTUBE: YOUTUBE API TOKEN
      SOUNDCLOUD: SOUNDCLOUD CLIENT ID
      SPOTIFY_SECRET: SPOTIFY SECRET API TOKEN
      SPOTIFY_ID: SPOTIFY SECRET API ID
      GENIUS: GENIUS API KEY

      # Required token
      DISCORD: DISCORD BOT TOKEN

      # Required if you want errors to be sent to you
      OWNER: DISCORD OWNER ID

      # You can use your own database url if you already have one running
      DATABASE_URL: 'postgresql://tempo:tempo@tempo-db:5432/tempo'
  db:
    image: postgres
    container_name: tempo-db
    restart: always
    volumes:
      - data:/var/lib/postgresql/data
    environment:
      PGDATA: /var/lib/postgresql/data/pgdata
      POSTGRES_PASSWORD: tempo
      POSTGRES_USER: tempo
      POSTGRES_DB: tempo

volumes:
  data:

Node.js & NPM

You can also install Tempo using the following commands:

git clone https://github.com/guusvanmeerveld/tempo/ tempo
cd tempo
npm install
npm run build

Tokens

To start the bot and connect to the Youtube or Soundcloud api, you will need a few tokens in the file .env. To do so, you can rename the file example.env to .env and fill in the necessary tokens/id's.

Start

To start the bot, simply run the following command:

npm start

Configuration

For a more specific installation, please check the config folder and update the files to your needs.

tempo's People

Contributors

dependabot[bot] avatar guusvanmeerveld avatar netfloex avatar

Watchers

 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.