GithubHelp home page GithubHelp logo

clawcastle / sound-boart Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 982 KB

Discord bot for playing user-uploaded sounds via text commands.

License: GNU General Public License v3.0

Dockerfile 0.54% TypeScript 99.46%
discord-bot typescript

sound-boart's Issues

Searching for sounds

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

Update ReadMe

The ReadMe should be updated with the following:

  • Information about how to use the bot. Basically the same content as the "help" command.
  • Link to add the bot to ones server

Log to file

Write logs to a file instead of just using console.log, since they disappear every time the app is deployed.

Migrate metadata from files to database

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.

Disconnect client when process exits

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.

Update help command

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.

Memoize getCommandParts function

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.

Remove dependency to Azure Blob Storage

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.

Implement logging + tracing

Add logging and tracing to event handling. Honeycomb for tracing and Sentry for exception logging seem like solid candidates and both have free tiers.

  • Add tracing with Honeycomb
  • Add error logging with Sentry

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.