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"))
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"))
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)
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
def c_debbie(client, message): yield from client.send_file(message.channel, sh.file_path("img/debbie.jpg"))
def c_zapraszam_wypierdalac(client, message): yield from client.send_file(message.channel, sh.file_path("img/wybamboclaj.jpg"))
def c_wincyj(client, message): yield from client.send_file( message.channel, sh.file_path("img/comment_302bIOuE74Qs2AzCr7pjcFmMfGRZvdgn.gif"))
def c_nawzajem(client, message): yield from client.send_file(message.channel, sh.file_path("img/nawzajem.jpg"))
def c_cogif(client, message): yield from client.send_file( message.channel, sh.file_path("img/comment_jblSpYCkKHo8hIGeGqLq0xWLjNjfM19j.gif"))
def c_rabin(client, message): yield from client.send_file(message.channel, sh.file_path("img/xysiu.webm"))
def c_cicho(client, message): yield from client.send_file(message.channel, sh.file_path("img/bulkowski.webm"))
def c_dzonka(client, message): yield from client.send_file( message.channel, sh.file_path( "img/still a better love story than meblosciankalight.JPG"))
def c_epic(client, message): yield from client.send_file(message.channel, sh.file_path("img/oatw10sekund.webm"))
def c_pierdolisz(client, message): yield from client.send_file(message.channel, sh.file_path("img/parmezany.jpg"))
def c_gofapota(client, message): yield from client.send_file(message.channel, sh.file_path("img/gofa_pota.png"))
def c_stop(client, message): yield from client.send_file(message.channel, sh.file_path("img/ELMO.mp4"))
def c_uszanowanko(client, message): yield from client.send_file(message.channel, sh.file_path("img/uszanowanko.png"))
def c_wish(client, message): yield from client.send_file(message.channel, sh.file_path("img/THATSME.jpg"))
def c_hammertime(client, message): yield from client.send_file(message.channel, sh.file_path("img/hammerhead.webm"))
def c_several(client, message): yield from client.send_file(message.channel, sh.file_path("img/politbiuro_intensifies.gif"))
def c_spierdalaj(client, message): yield from client.send_file(message.channel, sh.file_path("img/wuppertal.png"))
def c_silversurfer(client, message): yield from client.send_file(message.channel, sh.file_path("img/zal.pl.png"))
def c_pozdro(client, message): yield from client.send_file(message.channel, sh.file_path("img/pzdr.jpg"))
def c_klasnij(client, message): yield from client.send_file(message.channel, sh.file_path("img/rubik.png"))
def c_wiplerine(client, message): yield from client.send_file(message.channel, sh.file_path("img/xavier-mikke.jpg"))
def c_lyj(client, message): yield from client.send_file(message.channel, sh.file_path("img/rudy_szubert.png"))
def c_wypierdalaj(client, message): yield from client.send_file( message.channel, sh.file_path("img/comment_yJaXUY8ayZxkMA8s0oLMjNkdj6ajeDLD.gif"))
def c_mydli(client, message): yield from client.send_file(message.channel, sh.file_path("img/mydli.jpg"))
def c_bkc(client, message): yield from client.send_file(message.channel, sh.file_path("img/bk z kg chb z cb.jpg"))
def c_zle(client, message): yield from client.send_file(message.channel, sh.file_path("img/zle.webm"))