mirror of
https://github.com/eRgo35/lyra.git
synced 2026-02-04 12:26:10 +01:00
minor refractors, uptime removed
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
use crate::{commands::embeds::embed, Context, Error};
|
||||
use poise::CreateReply;
|
||||
pub mod effect;
|
||||
pub mod stream;
|
||||
|
||||
/// A better soundboard
|
||||
#[poise::command(prefix_command, slash_command, category = "Music")]
|
||||
pub async fn soundboard(ctx: Context<'_>) -> Result<(), Error> {
|
||||
ctx.send(CreateReply::default().embed(embed(ctx, "", "", "").await.unwrap()))
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
pub use effect::effect;
|
||||
pub use stream::stream;
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
use crate::{commands::embeds::embed, Context, Error};
|
||||
use poise::CreateReply;
|
||||
|
||||
/// Plays one of available audio effects
|
||||
#[poise::command(prefix_command, slash_command, category = "Music")]
|
||||
pub async fn effect(ctx: Context<'_>) -> Result<(), Error> {
|
||||
ctx.send(CreateReply::default().embed(embed(ctx, "Playing an effect", "", "").await.unwrap()))
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
11
src/commands/music/soundboard/stream.rs
Normal file
11
src/commands/music/soundboard/stream.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use crate::{commands::embeds::embed, Context, Error};
|
||||
use poise::CreateReply;
|
||||
|
||||
/// Hijacks current audio output and plays selected audio
|
||||
#[poise::command(prefix_command, slash_command, aliases("override"), category = "Music")]
|
||||
pub async fn stream(ctx: Context<'_>) -> Result<(), Error> {
|
||||
ctx.send(CreateReply::default().embed(embed(ctx, "Playing audio", "", "").await.unwrap()))
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user