Giter VIP home page Giter VIP logo

chuu's Introduction

Chuu

Chuu is a Discord bot that integrates Last.fm with Discord. Highly customizable at the user and server level. It also has some unique integrations with RateYourMusic.com. There are a ton of available commands like:

  • Your top of albums that were released in a given year
  • Image charts of both albums and artists
  • Play and scrobble music directly from Discord using Youtube,Bandcamp,Soundcloud,Twitch...
  • Artist, albums and songs leaderboards (crowns)
  • Unique artists within a server
  • Genre information about your artist/albums
  • 200+ more commands!
  • Full support for slash commands

Invite Link

You can invite the bot to your discord server using this link:

There is also a support server if you want to ask any questions directly. Join here:

Set-Up

You can also build the bot and install it on your own. In order to do that you need:

  • Java 16+ with preview features enabled

  • MariaDB 10.5+

  • Postgresql 12+

  • A Discogs developer account

    • DC_KY
    • DC_SC
  • A Spotify developer account

    • client_ID
    • client_Secret
  • A last.fm developer account

    • LASTFM_APIKEY
    • LASTFM_APISECRET (If you want to enable scrobbling)
    • LASTFM_BOT_SESSION_KEY (If you want to log what the bot scrobbles to a last.fm account)
  • A Discord developer account

    • DISCORD_TOKEN
  • OS

    • WALLPAPER_FOLDER (Directory with images to source backgrounds)
    • CACHE_FOLDER (Where to cache images)
    • IPV6_BLOCK (A ipv6 block used to avoid getting ip banned by YT)
  • OTHER

    • MODERATION_CHANNEL_ID (A discord channel where the bot will dump some info)
    • MODERATION_CHANNEL_2_ID (Another discord channel where the bot will dump some info)

Then you should set all those properties in the file all.properties In MariaDB you should run the following SQL script and adjust the datasource.properties with the corresponding properties. In Postgres you should run the following SQL script and adjust the datasource.properties with the corresponding properties.

If you are interested in posting info of the bot to a given botlist, fill the file botlists.properties. The keys are specified in BotLists.java

For postgresql I would recommend you to use mbdata to set up the musicbrainz database. Then adjust the mbiz.properties with the corresponding properties. WARNING: It's like a 30GB database, so take note. It's recommended to set normal and lowercase indexes on artist and album names to optimize some queries. Also the pg_trgm extension should be enabled.

After all that is installed you can run the task shadowjar of gradle and then you can execute

java -jar executable.jar

and the bot should begin running.

Test

If you were to do testing you should also fill the equivalent all.properties of the test module and also fill the tester.properties with a new Discord bot token that will be used for testing, the ID of the Discord server where the testing will take place and the ID of a user present in that server.

chuu's People

Contributors

ishwi avatar lucam03 avatar rexogamer avatar v3ntus 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.