source: .tests/talk_to_bitlbee.py @ c2b9040

Last change on this file since c2b9040 was 2806b5e, checked in by / <>, at 2021-03-29T11:32:17Z

rf3

  • Property mode set to 100644
File size: 508 bytes
Line 
1import btlib
2
3FUN = [
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
12def 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
24btlib.perform_test(yes_test)
Note: See TracBrowser for help on using the repository browser.