mirror of
https://github.com/ethanrusz/echbot.git
synced 2024-11-22 04:07:46 -05:00
Add prefix to ping command
This commit is contained in:
parent
a7599f55e1
commit
4ca472471a
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ use std::{
|
|||
};
|
||||
|
||||
/// Basically a ping command
|
||||
#[poise::command(slash_command)]
|
||||
#[poise::command(slash_command, prefix_command)]
|
||||
pub(crate) async fn slur(ctx: Context<'_>) -> Result<(), Error> {
|
||||
let file = File::open("quotes.txt").unwrap_or_else(|_e| panic!("Quote file missing.")); // Open the quotes file
|
||||
let file = BufReader::new(file); // Read the quotes file
|
||||
|
|
Loading…
Reference in a new issue