Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite in Rust & use Nix to build Docker images #303

Merged
merged 90 commits into from
Apr 30, 2024

Conversation

getchoo
Copy link
Member

@getchoo getchoo commented Dec 3, 2023

New things

  • Rust! 🚀 🔥 🦀

    • Letting go of the meme for a second, Rust offers better performance, lower memory usage, and - more specific to us here - a great ecosystem to make some things a little easier like argument handling, type checking, etc.
  • Moderation Commands 👮

    • So far custom ban and kick commands have been implemented
    • This is mainly to fix our problems with other bots not supporting both slash and prefix commands well
    • Suggestions are very welcome here, as I would like to make sure we have most commands we would regularly want (and have fun using them :p)
  • Nix Docker images ❄️

    • Docker images will now be much smaller, only containing a static binary and the required CA certs
    • Multi-arch images are built via cross compilation, preventing build times from skyrocketing compared to native

TODO

Here are some things currently implemented in refraction that aren't here yet (let me know if I missed any)

  • modrinth command We are removing this in favor of Allium
  • tag command
  • eta (thanks kode!)
  • Message link embeds
  • Removing messages on a ❌ reaction
  • Onboarding messages in support threads
  • Log parsing
  • PK integration
  • Custom presence
  • Document commands/params
  • Reimplement Contributor roles #268 we're not doing this anymore

status

done! just need to check for bugs

disclaimer

some of this is code directly derived from teawiebot

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clippy found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@Scrumplex
Copy link
Member

I think we can drop the modrinth commands, as we have Allium on our Discord for that

src/handlers/event/eta.rs Outdated Show resolved Hide resolved
src/main.rs Fixed Show fixed Hide fixed
src/main.rs Fixed Show fixed Hide fixed
src/utils/mod.rs Fixed Show fixed Hide fixed
src/utils/mod.rs Fixed Show fixed Hide fixed
src/utils/mod.rs Fixed Show fixed Hide fixed
src/main.rs Fixed Show fixed Hide fixed
src/main.rs Fixed Show fixed Hide fixed
src/utils/mod.rs Fixed Show fixed Hide fixed
src/utils/mod.rs Fixed Show fixed Hide fixed
src/utils/mod.rs Fixed Show fixed Hide fixed
src/commands/moderation/actions.rs Fixed Show fixed Hide fixed
src/commands/moderation/actions.rs Fixed Show fixed Hide fixed
src/commands/moderation/actions.rs Fixed Show fixed Hide fixed
src/commands/moderation/actions.rs Fixed Show fixed Hide fixed
with tag names *and* aliases both being options, we reach the limit for
the discord API

Signed-off-by: seth <[email protected]>
@getchoo getchoo requested review from ryanccn and TheKodeToad March 27, 2024 23:36
@Scrumplex Scrumplex merged commit 4d12ccc into PrismLauncher:main Apr 30, 2024
11 checks passed
@getchoo getchoo deleted the feat/RIIR branch April 30, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants