Giter Site home page Giter Site logo

dhrumilp15 / haystackfs Goto Github PK

View Code? Open in Web Editor NEW
59.0 4.0 12.0 8.43 MB

Just a File Manager for Discord. Secure and fast search for files (images, videos, etc)!

License: MIT License

Python 100.00%
discord discord-bot filesystem slash-commands bot asyncio

haystackfs's Issues

Use user token to login?

Is it possible to use a normal user account for this?
Normal discord search tries to be "smart" and does not let you do exact string searches.
For example, searching for "liquidate" pulls up "liquidity".

This causes me all sorts of problems.

Down?

The bot seems to have been down for a while.

Search index + Database Pruning

The Issue

The bot currently uploads metadata about any file in a discord server / channel to the search index and database. This is a barrier to scale the project since we don't want to blast our database and search provider usage limits.

Concept Idea for Solution

I'm thinking of a simple task that runs every (insert configurable amount of time here: Ex. 2 weeks) that cleans the database and search indices for any docs that have been stored but not accessed within the time frame. These docs will still be searchable through the solution for issue #17.

Implementation Idea for Solution

  • Could this be implemented as a cron job and run on the server?
  • There's also async tasks we can implement directly into the bot, but should we do it this way?

Create a tutorial for others to self-host the bot

The Issue

~60% of people who want the bot just want the features and also want to be in control of their data (naturally)

Concept Idea

Create a tutorial for others to self-host. We can use the current system (algolia + digitalocean + mongodb)

Implementation Idea

This can just be made with markdown - be sure to test out the final steps so that it works on the first try! ๐Ÿ’–

Docker support and oficial image on dockerhub

This looks incredibly useful and very easy to implement but running the services separated isn't exactly ideal . Most people running this kind of thing already have a homelab or an environment they would want to add this to.
An official docker image on docker hub (or a registry of your choice) would be extremely helpful.

Is this something you are open to ? If yes can you do it ? If you don't really understand or like docker would you be ok with making an official image if the dockerfile was made for you (you'd just have to keep it up to date basically) ?

Make the bot PRETTIER!!!

The Issue

Bots these days have to have PRETTY OUTPUT!! We also don't want to spam users with 100000+ files if we find that many (even 7 images gets overwhelming...)

Questions

  • Can we use discord Embeds to clean up how people use the bot?
  • Can we have a preview picture?
  • What about a scroll bar or pagination using reaction buttons?

Custom type file search not working properly

It does work with almost all file extensions I have tried but there's a kind of it, .STO files.
No matter how you set the bot, it will give you no results; it's like if the bot goes into a loop.

IMG_8819

Attached the type of file I'm using

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.