lpoto / discord-music-bot Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The bot should allow a /config
slash command that opens a moda through which the bot's configuration may be changed.
The main feature of this command should be setting which roles may use which commands(buttons).
The command could also allow changing the default values from config.yaml such as:
Buttons
section in config could be rather represented as a list of objects with Name
and Label
fields, so the buttons in the queue message are displayed in same order as are defined in the config, that way the members could change the label and the position of the buttons)The command could also allow changing the default help.
When the bot disconnects due to the lack of listeners, the Join
button should appear.
At the moment it does not, and when clicking on any other buttons the
Interaction failed
error is displayed.
This could be linked to #36.
Currently when a member with the required permissions moves the bot that is playing music to another channel, it breaks.
This should be solved by either detecting when the bot was moved and continuing with the music, or displaying the Join
button and requiring the bot to rejoin the channel if the first solution is not possible.
The bot should have a button that opens a modal that contains additional commands such as:
/stop
slash command)To avoid too many buttons and dropdowns, some of these commands could be implemented in a single text box, where
commands may be typed and are parsed. Example:
# this represents the user-typed contents of the text box
shuffle
remove 1,2,3
forward 5,6
clear
resend
stop
# this would shuffle all the songs, then remove songs with indexes 1,2 and 3, then send songs with indexes 5 and 6 to the fron of the queue, then clear all the songs from the queue, resend the queue in the channel and then stop the music.
Later a command for jumping forward and backward in the song could be added aswell.
When the bot is playing songs for a while, the queue is not being updated. There is never an issue when updating the queue message from an interaction, only when it is being updated directly based on it's messageID and channelID.
Also occasionally, the bot disconnects randomly after the end of a song, then immediately reconnects but does not start playing the next song.
The Datastore environment variables (POSTGRES_DB
, ...) should be moved to config.yaml under the MusicBot/Datastore/Postgres
section. That way the whole config is in a single config file instead of having just a few required environment variables.
Also the help.txt file should be converted to markdown, as discord supports markdown anyway.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.