make it so you can't ping others
This commit is contained in:
parent
ad4c21bccf
commit
52829873e1
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ struct Handler;
|
|||
impl EventHandler for Handler {
|
||||
async fn message(&self, ctx: Context, msg: Message) {
|
||||
if msg.content.starts_with("-addquote") {
|
||||
let quote = msg.content.strip_prefix("-addquote ").expect("asdf").to_string().replace("@", "\\@");
|
||||
let quote = msg.content.strip_prefix("-addquote ").expect("asdf").to_string().replace("@", "\\@\\");
|
||||
let quote_to_write = format!("{}", quote).clone();
|
||||
let mut quote_file = OpenOptions::new().write(true).append(true).open("quotes.txt").unwrap();
|
||||
let write_result = writeln!(quote_file, "{}", quote_to_write);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue