Piola Music 2 is a YouTube compatible music bot for Discord written in C#, powered by DSharpPlus and Lavalink. You can add it to your own server, or host your own instance!
Due to Discord's policy, this bot cannot be verified and can only be in max 100 servers. If you want to add it to your own server, contact me on :
First, download a binary for your OS and CPU architecture:
You will then need to download and configure Lavalink, set up a bot account on Discord Developers and then configure the bot itself. You can also use command line arguments for a one-time config.
You can find the config file (PiolaMusic2.dll.config) in the bot's executable folder. Keep in mind that command line arguments will override the values set in the config file.
Key | Arg | Info |
---|---|---|
BotToken | -t | Your bot account's token. |
CmdPrefix | -p | The prefix used for discord commands. |
BotStatusMessage | -m | Your bot account's status message. |
BotActivityType | -a | Your bot account's status prefix. Valid values are 0 to 5. For more info, see the cfg file. |
StatisticsEnabled | -s | Enables or disables stat reporting for guilds in JSON. Valid values are true or false. If it's set to false, your instance of the pm2stats website will NOT work. If unsure, set it to false. |
StatisticsRefeshInterval | -si | Set how often stat JSON files get created/updated/deleted in seconds. Value must be an integer. Values under 10 are not reccomended. |
StatisticsDirectory | -sd | Set the directory where guild statistics JSON will be saved. If unsure, set it to "stats/". |
StatisticsWebpageUrl | -sw | Set the hostname of your own PM2Stats website. To disable the pm!ls command, leave this field blank. |
LavalinkPassword | -pw | The password from your lavalink config. |
LavalinkHostname | -h | Your lavalink server's IP address. If unsure, set it to "127.0.0.1". |
LavalinkPort | -lp | Your lavalink server's port. If unsure, set it to "2333". |
If stat reporting is enabled, they will be saved in a JSON (one per guild ID) with the name <GuildID> that contains :
Guild-specific config JSONs will also be saved, that allow the guild's admins to enable or disable stat reporting for their guild. You can use these JSONs to host your own Statistics website (You can download the source code of this website HERE, or do uhhh... Whatever else you want, i guess.)