Remove prefix from music group

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/2/head
trivernis 4 years ago
parent 7005fa7317
commit f32228e61f
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -11,7 +11,7 @@ use crate::commands::music::get_queue_for_guild;
#[usage("")] #[usage("")]
#[aliases("cl")] #[aliases("cl")]
#[allowed_roles("DJ")] #[allowed_roles("DJ")]
async fn clear(ctx: &Context, msg: &Message) -> CommandResult { async fn clear_queue(ctx: &Context, msg: &Message) -> CommandResult {
let guild = msg.guild(&ctx.cache).await.unwrap(); let guild = msg.guild(&ctx.cache).await.unwrap();
log::debug!("Clearing queue for guild {}", guild.id); log::debug!("Clearing queue for guild {}", guild.id);

@ -28,7 +28,11 @@ async fn lyrics(ctx: &Context, msg: &Message) -> CommandResult {
msg.channel_id msg.channel_id
.send_message(ctx, |m| { .send_message(ctx, |m| {
m.embed(|e| e.title(format!("Lyrics for {}", title)).description(lyrics)) m.embed(|e| {
e.title(format!("Lyrics for {} by {}", title, author))
.description(lyrics)
.footer(|f| f.text("Powered by lyricsovh"))
})
}) })
.await?; .await?;
} else { } else {

@ -12,7 +12,7 @@ use songbird::{
}; };
use tokio::sync::Mutex; use tokio::sync::Mutex;
use clear::CLEAR_COMMAND; use clear_queue::CLEAR_QUEUE_COMMAND;
use current::CURRENT_COMMAND; use current::CURRENT_COMMAND;
use join::JOIN_COMMAND; use join::JOIN_COMMAND;
use leave::LEAVE_COMMAND; use leave::LEAVE_COMMAND;
@ -36,7 +36,7 @@ use regex::Regex;
use std::sync::atomic::{AtomicIsize, AtomicUsize, Ordering}; use std::sync::atomic::{AtomicIsize, AtomicUsize, Ordering};
use std::time::Duration; use std::time::Duration;
mod clear; mod clear_queue;
mod current; mod current;
mod join; mod join;
mod leave; mod leave;
@ -60,13 +60,12 @@ mod skip;
shuffle, shuffle,
current, current,
play_next, play_next,
clear, clear_queue,
pause, pause,
save_playlist, save_playlist,
playlists, playlists,
lyrics lyrics
)] )]
#[prefixes("m", "music")]
pub struct Music; pub struct Music;
struct SongEndNotifier { struct SongEndNotifier {

@ -13,7 +13,7 @@ use crate::commands::music::{
#[description("Puts a song as the next to play in the queue")] #[description("Puts a song as the next to play in the queue")]
#[usage("<song-url>")] #[usage("<song-url>")]
#[min_args(1)] #[min_args(1)]
#[aliases("pn")] #[aliases("pn", "play-next")]
#[allowed_roles("DJ")] #[allowed_roles("DJ")]
async fn play_next(ctx: &Context, msg: &Message, args: Args) -> CommandResult { async fn play_next(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
let query = args.message(); let query = args.message();

Loading…
Cancel
Save