예제 #1
0
def c_vnag(client, message):
    if random.random() < 0.1:
        yield from client.send_file(message.channel,
                                    sh.file_path("img/bruk-teb mountain.png"))
    else:
        yield from client.send_file(message.channel,
                                    sh.file_path("img/teb.png"))
예제 #2
0
def c_zgadzam(client, message):
    if random.random() < 0.1:
        yield from client.send_file(message.channel,
                                    sh.file_path("img/dracia_intensifies.gif"))
    else:
        yield from client.send_file(message.channel,
                                    sh.file_path("img/nargogh wins.png"))
예제 #3
0
파일: billy.py 프로젝트: stahu112/BillyMays
def on_member_join(member):
	invitation_msg = "Witam witam {} na naszym magicznym serwerze!".format(member.mention)
	
	if member.server.id == "174449535811190785":
		yield from client.send_file(member.server.default_channel, sh.file_path("img/w mcdonalds spotkajmy sie.jpg"), content=invitation_msg)
		yield from client.send_message(member.server.default_channel, "(lepiej nie pytaj kto to jest)")
	else:
		yield from client.send_message(member.server.default_channel, invitation_msg)
예제 #4
0
def check_uptime():
    list_of_files = glob.glob(sh.file_path("billy*.py"))
    latest_file = max(list_of_files, key=os.path.getmtime)

    ret = "Żyję już od " + str(
        (datetime.datetime.today() -
         datetime.datetime.utcfromtimestamp(start_time)
         ).days).zfill(2) + datetime.datetime.utcfromtimestamp(
             time.time() - start_time).strftime("d %Hh %Mmin %Ss") + "!\n"
    ret += "Ostatnia aktualizacja: " + datetime.datetime.fromtimestamp(
        int(os.path.getmtime(latest_file))).strftime(
            '%Y-%m-%d %H:%M:%S') + " (" + latest_file + ")"
    return ret
예제 #5
0
def c_debbie(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/debbie.jpg"))
예제 #6
0
def c_zapraszam_wypierdalac(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/wybamboclaj.jpg"))
예제 #7
0
def c_wincyj(client, message):
    yield from client.send_file(
        message.channel,
        sh.file_path("img/comment_302bIOuE74Qs2AzCr7pjcFmMfGRZvdgn.gif"))
예제 #8
0
def c_nawzajem(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/nawzajem.jpg"))
예제 #9
0
def c_cogif(client, message):
    yield from client.send_file(
        message.channel,
        sh.file_path("img/comment_jblSpYCkKHo8hIGeGqLq0xWLjNjfM19j.gif"))
예제 #10
0
def c_rabin(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/xysiu.webm"))
예제 #11
0
def c_cicho(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/bulkowski.webm"))
예제 #12
0
def c_dzonka(client, message):
    yield from client.send_file(
        message.channel,
        sh.file_path(
            "img/still a better love story than meblosciankalight.JPG"))
예제 #13
0
def c_epic(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/oatw10sekund.webm"))
예제 #14
0
def c_pierdolisz(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/parmezany.jpg"))
예제 #15
0
def c_gofapota(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/gofa_pota.png"))
예제 #16
0
def c_stop(client, message):
    yield from client.send_file(message.channel, sh.file_path("img/ELMO.mp4"))
예제 #17
0
def c_uszanowanko(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/uszanowanko.png"))
예제 #18
0
def c_wish(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/THATSME.jpg"))
예제 #19
0
def c_hammertime(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/hammerhead.webm"))
예제 #20
0
def c_several(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/politbiuro_intensifies.gif"))
예제 #21
0
def c_spierdalaj(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/wuppertal.png"))
예제 #22
0
def c_silversurfer(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/zal.pl.png"))
예제 #23
0
def c_pozdro(client, message):
    yield from client.send_file(message.channel, sh.file_path("img/pzdr.jpg"))
예제 #24
0
def c_klasnij(client, message):
    yield from client.send_file(message.channel, sh.file_path("img/rubik.png"))
예제 #25
0
def c_wiplerine(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/xavier-mikke.jpg"))
예제 #26
0
def c_lyj(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/rudy_szubert.png"))
예제 #27
0
def c_wypierdalaj(client, message):
    yield from client.send_file(
        message.channel,
        sh.file_path("img/comment_yJaXUY8ayZxkMA8s0oLMjNkdj6ajeDLD.gif"))
예제 #28
0
def c_mydli(client, message):
    yield from client.send_file(message.channel, sh.file_path("img/mydli.jpg"))
예제 #29
0
def c_bkc(client, message):
    yield from client.send_file(message.channel,
                                sh.file_path("img/bk z kg chb z cb.jpg"))
예제 #30
0
def c_zle(client, message):
    yield from client.send_file(message.channel, sh.file_path("img/zle.webm"))