Coder Social home page Coder Social logo

faithful-resource-pack / complibot-submissions Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 4.17 MB

Fully automated texture pushing and submission system for the Faithful Discord servers.

License: GNU Affero General Public License v3.0

JavaScript 100.00%

complibot-submissions's People

Contributors

3vorp avatar dependabot-preview[bot] avatar dependabot[bot] avatar domi04151309 avatar faithful-pack avatar fami-fish avatar juknum avatar pomi108 avatar robertrr11 avatar seirin-blu avatar therandomgamrtrg avatar therolffr avatar ttury avatar

complibot-submissions's Issues

[Feature] Use slash commands for submission-related commands

Is your feature request related to a problem?

No response

Describe the feature you'd like

Switch from standard prefix commands to modern slash commands, particularly for commands like /backup, /channelpush, and /autopush. Now that we're using DJS v14, we can use slash command permissions properly now, which is the main reason I had never implemented it before.

Screenshot(s)

No response

Notes

Ideally write a somewhat sane command handler and make the interfaces somewhat similar to our current command system

[Feature] Textures invalidated in council don't update the original submission

Issue originally created by evorp on Discord

Is your feature request related to a problem?

read the title

Describe the feature you'd like

If a texture is invalidated in a council channel, use the "original post" link to find the original message and update that too

Notes

should be easy enough with regex and stuff (also first real test of the feedback system wooooo)

[Bug] Textures can get skipped in voting if there's more than 100

Issue originally created by evorp on Discord

What happened?

For optimization purposes, the bot caps the amount of scanned submissions at 100 (this can technically be increased to an arbitrary number but it will lag the bot substantially more and is overall not worth it). However, this can cause a lot of problems if more than 100 submissions are posted in a day, such as the recent events with the GUI.

Would probably be best solved by passing in a filter callback into the function so it just needs to scan as many items as needed and returns the results, rather than scanning 100 regardless of if it matches any criteria or not.

To reproduce

  • Submit more than 100 textures
  • The bot ignores anything past the 100th submission.

Notes

No response

[Feature] Move GitHub submission info into pack "units"

Issue originally created by evorp on Discord

Is your feature request related to a problem?

No response

Describe the feature you'd like

Basically instead of specifying the github urls for pushing textures inside the repositories field of settings.json, specify them inside each individual pack json instead โ€” this should make stuff even more easy to edit in the future.

The reason I hadn't done this already is I wasn't sure if it was used already, but after searching literally every codebase, I can confirm only raw and .git urls are used directly.

Notes

Not terribly important, but would make stuff a bit cleaner.

[Bug] settings.json doesn't load the first time you start the bot

What happened?

Bot doesn't start if a settings.json file doesn't exist in the resources folder, despite the fact that it's supposed to be automatically generated before the bot even starts.

To reproduce

  1. Delete any existing copies of settings.json in the resources/ folder.
  2. Try starting the bot
  3. See the error message

Screenshot(s)

image

Notes

No response

[Feature] Add a feedback command to the submission bot

Is your feature request related to a problem?

There's currently no feedback command for exclusively submissions, meaning stuff from both the TS bot and this get grouped together arbitrarily

Describe the feature you'd like

Add a /feedback command to the slash command bot. It should let you choose between a bug report and a feature request, use modals to have the same interface as the GitHub YML templates, and convert the data into a real GitHub issue on this repository.

Alternatively, the feedback could be sent to a private channel like it currently is, but that causes a lot of clutter and you can't make comments and change the state of regular messages easily.

Screenshot(s)

No response

Notes

Maybe look at Juk's code from the nightly bot for how to implement this? He got something similar working at some point

[Feature] Make instapassing textures more reliable

Is your feature request related to a problem?

Instapassed textures can get skipped if you do them too quickly sometimes.

Describe the feature you'd like

  1. Make downloadResults and pushTextures let you push a single texture rather than run the full cycle every time.
  2. Write instapassed textures to a dedicated directory and ensure that every instapassed texture ends up in a different directory (generate a super basic random hash) even if it's for the same pack. This should probably stop the commit grouping and premature deletion that happens when you instapass too quickly.

Screenshot(s)

No response

Notes

downloadResults already exports a function to download a single texture (added in 3feeac0)

[Feature] Test Feedback Take 3

Issue originally created by evorp on Discord

Is your feature request related to a problem?

No response

Describe the feature you'd like

Have this work properly

Notes

[Feature] Test Feedback II: Electric Boogaloo

Issue originally created by evorp on Discord

Is your feature request related to a problem?

No response

Describe the feature you'd like

Working feedback descriptions I guess

Notes

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.