Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: remove media channels
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jun 21, 2023
1 parent 895f3c1 commit 26c3c5f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 44 deletions.
7 changes: 0 additions & 7 deletions src/events/message_create.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
use super::*;
use crate::utils::code_embed::utils::code_preview;
use crate::utils::media_channel::handle_media_channel;
use crate::utils::message_response::handle_message_response;

pub async fn message_create(ctx: &serenity::Context, new_message: &serenity::Message) {
let is_media_channel = handle_media_channel(ctx, new_message).await;

if is_media_channel {
return;
};

tokio::join!(
handle_message_response(ctx, new_message),
code_preview(ctx, new_message)
Expand Down
34 changes: 0 additions & 34 deletions src/utils/media_channel.rs

This file was deleted.

5 changes: 2 additions & 3 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use chrono::Duration;
use poise::serenity_prelude::{self as serenity, Member, RoleId};

pub mod message_response;
pub mod bot;
pub mod code_embed;
pub mod decancer;
pub mod message;
pub mod macros;
pub mod media_channel;
pub mod message;
pub mod message_response;
pub mod moderation;
pub mod poll;

Expand Down

0 comments on commit 26c3c5f

Please sign in to comment.