embedded ascii for spam
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1a9259c278
commit
cb46761966
11
src/main.rs
11
src/main.rs
@ -15,6 +15,8 @@ async fn main() -> Result<(), failure::Error> {
|
||||
..Config::default()
|
||||
};
|
||||
|
||||
let spamart = include_str!("ouch.txt");
|
||||
|
||||
let mut client = Client::from_config(config).await?;
|
||||
client.identify()?;
|
||||
|
||||
@ -82,7 +84,12 @@ async fn main() -> Result<(), failure::Error> {
|
||||
let t = target.to_string();
|
||||
|
||||
tokio::spawn(async move { send_message(s.clone(), t, output).await });
|
||||
}
|
||||
},
|
||||
Some("!spam") => {
|
||||
let s = sender.clone();
|
||||
let t = target.clone();
|
||||
tokio::spawn(async move { send_message(s.clone(), t, spamart.to_string()).await });
|
||||
},
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
@ -101,7 +108,7 @@ async fn send_message(
|
||||
) -> Result<(), failure::Error> {
|
||||
for l in msg.lines() {
|
||||
sender.send_privmsg(target.clone(), l)?;
|
||||
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
|
||||
tokio::time::sleep(tokio::time::Duration::from_millis(500)).await;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
30
src/ouch.txt
Normal file
30
src/ouch.txt
Normal file
@ -0,0 +1,30 @@
|
||||
1,1 4,4 1,4 OUCHnet4,4 1,1 0,1
|
||||
1,4irc.ouch.chat1,1 0,1
|
||||
1,0466670,0 1,0466971,1 0,1
|
||||
4,4 0,0 12,12 0,0 12,12 0,0 4,4 1,1 0,1
|
||||
1,1 0,0 5,5 0,0 5,5 0,0 1,1 0,1
|
||||
0,1 1,1 0,0 5,5 0,0 1,1 0,1
|
||||
0,1 1,1 0,0 1,1 0,1
|
||||
0,1 1,1 0,0 0,1 1,1 0,1
|
||||
0,1 1,1 0,0 1,1 0,1 1,1 0,1
|
||||
0,1 0,0 1,1 0,1
|
||||
0,1 0,0 1,1 0,1 1,1 0,1
|
||||
0,1 0,0 0,1 1,1 0,1 8,8 0,1 1,1 0,1
|
||||
0,1 0,0 1,1 0,0 1,1 0,1 0,0 0,1 8,8 0,1 8,8 0,1 1,1 0,1
|
||||
0,1 0,0 1,1 0,0 1,1 0,0 0,1 0,0 8,8 0,1 8,8 0,1 1,1 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 0,0 1,1 0,1 0,0 0,1 8,8 0,1 1,1 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 1,1 0,1 0,0 0,1 8,8 0,1 1,1 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 0,0 0,1 8,8 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 8,8 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 8,8 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 0,0 0,1 8,8 0,1 8,8 0,1 8,8 0,1
|
||||
0,1 0,0 0,1 14,14 8,8 14,14 8,8 14,14 8,8 14,14 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 0,0 0,1 14,14 1,14freenode8,8 1,14lib1,8e1,14ra14,14 1,14r1,8iz1,14on e1,8fn1,14et dalnet14,14 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 0,0 0,1 14,14 8,8 14,14 8,8 14,14 8,8 14,14 8,8 14,14 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 0,0 0,1 14,14 13,13 14,14 13,13 14,14 13,13 8,8 13,13 8,8 13,13 14,14 13,13 8,8 13,13 14,14 13,13 14,14 0,1
|
||||
0,1 0,0 0,1 0,0 0,1 0,0 0,1 14,14 13,13 14,14 13,13 14,14 13,13 14,14 13,13 14,14 8,8 13,13 14,14 8,8 13,13 14,14 13,13 14,14 13,13 8,8 13,13 14,14 13,13 14,14 8,8 14,14 0,1
|
||||
0,1 14,14 13,13 14,14 13,13 14,14 13,13 8,8 13,13 8,8 13,13 14,14 13,13 14,14 13,13 8,8 13,13 14,14 13,13 14,14 8,8 14,14 1,1 0,1
|
||||
0,1 14,14 13,13 14,14 13,13 14,14 13,13 8,8 14,14 13,13 8,8 13,13 14,14 13,13 8,8 13,13 14,14 13,13 14,14 8,8 14,14 1,1 0,1
|
||||
0,1 14,14 13,13 14,14 13,13 14,14 13,13 8,8 13,13 8,8 13,13 14,14 13,13 8,8 13,13 14,14 13,13 14,14 8,8 14,14 1,1 0,1
|
||||
0,1 14,14 8,8 14,14 8,8 14,14 8,8 14,14 1,1 0,1
|
||||
0,1 8,8 0,1 8,8 0,1 8,8 0,1 1,1 0,1
|
Loading…
x
Reference in New Issue
Block a user