Code Monkey home page Code Monkey logo

discord-neofetch's Issues

Known issues and required features

Bot is currently kinda unstable (due to bad code) and needs a few fixes

  • Better interaction handling. Bot usually crashes due to an "Unknown Message" error (and usually restarts, thanks to Railway) but that's a problem that needs to be fixed
  • Better error handling, due to errors like "Unknown Interaction" and "Unknown Message" crashing the bot, I had to pass empty catch statements all over the code, which is bad practice really
  • Button interaction error: interactions usually fail sometimes. Not good.
  • Better slash command deployment handling. Currently the bot registers slash command on every run in production and I'm not really sure if that's a good idea. For some reason, I couldn't execute two scripts in succession in Railway, even with a process.exit() in the code to move on to the next script
  • A proper logger (eg: pino)
  • Command cleanup and refactoring
  • A few bug fixes. A lot of bug fixes

If you do know how to fix these issues, please submit a PR, that would be much appreciated.

ANSI color codes don't work when in production

Currently, the bot uses chalk-template for the ANSI escape codes, and node:fs for rendering the ascii arts right, but apparently, after the bot was hosted on Railway, none of the above stuff worked.

The ascii arts aren't aligned correctly too, here's a picture for demo purposes:
image

Not sure what the issue is, might be because I used node:fs instead of fs, but should not affect anything, I guess. Or maybe chalk-template's colors are somehow stripped and don't show up for some reason in production.

Edit: no change as of commit 0294780
Edit 2: no change as of commit 1cf120e

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.