./gradlew shadowJar
- Java 11 or higher
- Discord application and bot token. Learn here how to create a discord application. Required permissions:
Read Messages/View ChannelsSend MessagesSend Messages in ThreadsManage MessagesEmbed LinksUse External EmojisUse External StickersAdd ReactionsUse Slash CommandsConnectSpeakUse Voice Activity
java -jar build/libs/AlphaMusic.jar
-dtor--discord_token- specify discord token - optional
Used to link the application to a discord bot-yeor--youtube_email- specify YouTube email - optional
Used for YouTube search synchronization and to allow playing of age restricted tracks-ypor--youtube_pass- specify YouTube password - optional
If environment variables are not found, the application will check java system properties and if it can't find those either, it will attempt use the default value or throw an exception if value is not optional.
ALPHAMUSIC_DISCORD_TOKEN- specify discord token - required if -dt parameter is not specifiedALPHAMUSIC_YOUTUBE_EMAIL- optional - default:-dt valueornullALPHAMUSIC_YOUTUBE_PASSWORD- optional - default:-yp valueornullALPHAMUSIC_MYSQL_HOST- specify MySQL host - requiredALPHAMUSIC_MYSQL_PORT- specify MySQL port - optional - default:3306ALPHAMUSIC_MYSQL_DATABASE- specify MySQL database - requiredALPHAMUSIC_MYSQL_USERNAME- specify MySQL username - requiredALPHAMUSIC_MYSQL_PASSWORD- specify MySQL password - requiredALPHAMUSIC_MYSQL_SAVE_DELAY- specify delay between data saving tasks - default:30ALPHAMUSIC_MYSQL_SAVE_DELAY_TIMEUNIT- specify the time unit to represent the save delay by - default:MINUTESALPHAMUSIC_DEBUG_MODE- specify if debug mode should be enabled when the app starts - default:false
java -DALPHAMUSIC_MYSQL_HOST=example.test -DALPHAMUSIC_MYSQL_DATABASE=alphamusic -DALPHAMUSIC_MYSQL_USERNAME=alphamusic -DALPHAMUSIC_MYSQL_PASSWORD=pass1234 -jar build/libs/AlphaMusic.jar --discord_token mydiscord.token.123
app-hor--help- show help menu-vor--version- show application version-dor--debug- toggle debug mode-sor--shutdown- shutdown application
