silly goober bot

feat: make app

+27 -8
+10 -4
Cargo.lock
··· 1693 1693 [[package]] 1694 1694 name = "poise" 1695 1695 version = "0.6.1" 1696 - source = "registry+https://github.com/rust-lang/crates.io-index" 1697 - checksum = "1819d5a45e3590ef33754abce46432570c54a120798bdbf893112b4211fa09a6" 1696 + source = "git+https://github.com/serenity-rs/poise?branch=current#518ff0564865bca2abf01ae8995b77340f439ef9" 1698 1697 dependencies = [ 1699 1698 "async-trait", 1700 1699 "derivative", 1701 1700 "futures-util", 1701 + "indexmap", 1702 1702 "parking_lot", 1703 1703 "poise_macros", 1704 1704 "regex", 1705 1705 "serenity", 1706 1706 "tokio", 1707 1707 "tracing", 1708 + "trim-in-place", 1708 1709 ] 1709 1710 1710 1711 [[package]] 1711 1712 name = "poise_macros" 1712 1713 version = "0.6.1" 1713 - source = "registry+https://github.com/rust-lang/crates.io-index" 1714 - checksum = "8fa2c123c961e78315cd3deac7663177f12be4460f5440dbf62a7ed37b1effea" 1714 + source = "git+https://github.com/serenity-rs/poise?branch=current#518ff0564865bca2abf01ae8995b77340f439ef9" 1715 1715 dependencies = [ 1716 1716 "darling", 1717 1717 "proc-macro2", ··· 2853 2853 "thread_local", 2854 2854 "tracing-core", 2855 2855 ] 2856 + 2857 + [[package]] 2858 + name = "trim-in-place" 2859 + version = "0.1.7" 2860 + source = "registry+https://github.com/rust-lang/crates.io-index" 2861 + checksum = "343e926fc669bc8cde4fa3129ab681c63671bae288b1f1081ceee6d9d37904fc" 2856 2862 2857 2863 [[package]] 2858 2864 name = "triomphe"
+1 -1
Cargo.toml
··· 17 17 humantime = "2.2.0" 18 18 kittysay = "0.8.0" 19 19 nixpkgs-track_lib = "0.2.0" 20 - poise = "0.6.1" 21 20 rand = "0.9.1" 22 21 regex = "1.11.1" 23 22 serde_json = "1.0.140" 24 23 serenity = "0.12.4" 24 + poise = { git = "https://github.com/serenity-rs/poise", branch = "current" } 25 25 26 26 [dependencies.serde] 27 27 version = "1.0.219"
+6 -1
default.nix
··· 23 23 ); 24 24 }; 25 25 26 - cargoLock.lockFile = ./Cargo.lock; 26 + cargoLock = { 27 + lockFile = ./Cargo.lock; 28 + outputHashes = { 29 + "poise-0.6.1" = "sha256-/UrFlHWDsCDaqWd+XchmH0PzauxIWuYaJp9ZZh3W+50="; 30 + }; 31 + }; 27 32 28 33 buildInputs = [ openssl ]; 29 34 nativeBuildInputs = [ pkg-config ];
+5 -1
src/commands/fun/nix.rs
··· 68 68 ]; 69 69 70 70 /// nix fixes this 71 - #[poise::command(slash_command)] 71 + #[poise::command( 72 + slash_command, 73 + install_context = "Guild|User", 74 + interaction_context = "Guild|BotDm|PrivateChannel" 75 + )] 72 76 pub async fn nix(ctx: Context<'_>) -> Result<()> { 73 77 let select = rand::rng().random_range(0..=MEMES.len()); 74 78 ctx.say(MEMES[select]).await?;
+5 -1
src/commands/misc/nixpkgs.rs
··· 14 14 ]; 15 15 16 16 /// Track nixpkgs PRs 17 - #[poise::command(slash_command)] 17 + #[poise::command( 18 + slash_command, 19 + install_context = "Guild|User", 20 + interaction_context = "Guild|BotDm|PrivateChannel" 21 + )] 18 22 pub async fn nixpkgs( 19 23 ctx: Context<'_>, 20 24 #[description = "pr"]