clawcastle / sound-boart Goto Github PK
View Code? Open in Web Editor NEWDiscord bot for playing user-uploaded sounds via text commands.
License: GNU General Public License v3.0
Discord bot for playing user-uploaded sounds via text commands.
License: GNU General Public License v3.0
Make a simple search function that allows for searching for sounds that contain a certain string in their name. Could be used somewhat like this:
$find query_string
The ReadMe should be updated with the following:
Write logs to a file instead of just using console.log, since they disappear every time the app is deployed.
Use a proper database (either Postgres or Sqlite) for storing metadata like usage metrics and other configuration, rather than having to read an entire json file into memory every time.
Simply make it possible to run the bot using Typescript.
Enable changing the prefix for triggering the bot.
Right now there is some pretty strange behavior whenever the bot is deployed, where multiple instances seem to be running even though the container gets killed. I think this is because the Discord client isn't properly disposed when the process exits.
docker-compose would be nice for easily using volume mounts locally.
The help command isn't up to date as it doesn't contain information about all commands. It also doesn't take custom prefix into account.
Right now, the getCommandParts function is probably the one that is called the most often in the entire application, as it is invoked multiple times for each command. It could easily be memoized to greatly reduce the amount of string arrays allocated.
Right now the only option for storing the sounds is Azure Blob Storage. The files should just be placed in a configurable location on disk, which could then potentially be a volume mount.
All command aliases should be reserved so users don't accidentally overwrite them by uploading a sound by the same name.
Play a random sound
Records amount of times a sound is played. Deliberately doesn't record from playing greeting sounds.
Right now the sound files are only stored on the disk connected to the machine where the bot is running.
In case that disk fails, the files are lost. So it would be nice to back it up to more resilient storage.
Implement something like Levenshtein distance seems like a better fit than the custom implementation that is in place now.
getSoundNamesWithTagForServer from soundsHelpers.ts should not throw an error just because it doesn't find anything. Just return empty array and handle from client.
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.