Line | |
---|
1 | import btlib |
---|
2 | |
---|
3 | FUN = [ |
---|
4 | "Did I ask you something?", |
---|
5 | "Oh yeah, that's right.", |
---|
6 | "Alright, alright. Now go back to work.", |
---|
7 | "Buuuuuuuuuuuuuuuurp... Excuse me!", |
---|
8 | "Yes?", |
---|
9 | "No?", |
---|
10 | ] |
---|
11 | |
---|
12 | def yes_test(clis): |
---|
13 | ret = False |
---|
14 | clis[0].send_priv_msg("&bitlbee", "yes") |
---|
15 | clis[0].receive() |
---|
16 | for x, fun in enumerate(FUN): |
---|
17 | if (clis[0].log.find(fun) != -1): |
---|
18 | ret = True |
---|
19 | if x: |
---|
20 | print("The RNG gods smile upon us") |
---|
21 | break |
---|
22 | return ret |
---|
23 | |
---|
24 | btlib.perform_test(yes_test) |
---|
Note: See
TracBrowser
for help on using the repository browser.