Compare commits
2 Commits
d9ed7bd501
...
2716d9172f
Author | SHA1 | Date | |
---|---|---|---|
2716d9172f | |||
1c41a201a8 |
15
src/main.rs
15
src/main.rs
@ -248,8 +248,8 @@ async fn main() -> std::io::Result<()> {
|
||||
.await
|
||||
.add_event_system(IrcCommand::RPL_ENDOFWHO, endofwho)
|
||||
.await
|
||||
.add_system("f", new_fight)
|
||||
.await
|
||||
//.add_system("f", new_fight)
|
||||
//.await
|
||||
.add_system("royalrumble", royal_rumble)
|
||||
.await
|
||||
.add_system("challenge", challenge)
|
||||
@ -631,9 +631,9 @@ fn show_help() -> impl IntoResponse {
|
||||
(
|
||||
false,
|
||||
vec![
|
||||
",f <nick> <nick> | duel fight",
|
||||
",f <nick> ... vs <nick> ... | team battle",
|
||||
",f <nick> <nick> <nick> ... | free for all",
|
||||
//",f <nick> <nick> | duel fight",
|
||||
//",f <nick> ... vs <nick> ... | team battle",
|
||||
//",f <nick> <nick> <nick> ... | free for all",
|
||||
",royalrumble | chan wide free for all",
|
||||
",challenge <nick> | challenge someone to a deathmatch",
|
||||
",accept | accept a challenge",
|
||||
@ -773,7 +773,10 @@ fn challenge(
|
||||
if let Err(e) = check_idle(&fight.status) {
|
||||
return Err(e);
|
||||
}
|
||||
|
||||
if arguments[0] == prefix.nick {
|
||||
return Err("you can't challenge yourself nigga.".to_owned())
|
||||
}
|
||||
|
||||
fight.status = FightStatus::WaitingWho;
|
||||
fight.channel = channel.to_owned();
|
||||
fight.kind = FightKind::DeathMatch;
|
||||
|
Loading…
Reference in New Issue
Block a user