Skip to content

Commit

Permalink
Fuse Sophie's flesh with The Collective
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinegb committed Apr 17, 2024
1 parent df2c3e3 commit 48e43bf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/collective.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
use poise::serenity_prelude::{
Attachment, ChannelId, CreateAttachment, CreateMessage, ExecuteWebhook, Mentionable, Webhook,
Attachment, ChannelId, CreateAttachment, CreateMessage, ExecuteWebhook, Mentionable, UserId,
Webhook,
};

use crate::{utility::choose_str, Context, Error, FloofEmoji};

/// The Collective grows ever stronger...
#[poise::command(slash_command)]
#[poise::command(slash_command, ephemeral)]
pub(super) async fn collective(
ctx: Context<'_>,
#[description = "Your contribution to The Collective"] message: String,
#[description = "An additional offering to The Collective"] attachment: Option<Attachment>,
) -> Result<(), Error> {
if ctx.author().id == UserId::new(672258199566417930) {
ctx.say("Your flesh is a part of The Collective, but your mind was broken...")
.await?;

return Ok(());
}

ctx.defer_ephemeral().await?;

let webhook = Webhook::from_url(ctx, &ctx.data().collective_webhook_url).await?;
Expand Down

0 comments on commit 48e43bf

Please sign in to comment.