1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2017-01-20 13:12:34 +01:00
parent 249b61966c
commit 36299c645d

3
bot.py
View file

@ -476,8 +476,9 @@ def getrygimage():
if len(cmd[1]) > 2: if len(cmd[1]) > 2:
telegram.sendmessage("Puoi mettere solo due lettere.") telegram.sendmessage("Puoi mettere solo due lettere.")
else: else:
# FIXME: percorsi assoluti
directory = "/var/www/html/rygimages/{}.png" directory = "/var/www/html/rygimages/{}.png"
infile = open("basiclogo.svg", "r") infile = open("/royal/bot/basiclogo.svg", "r")
indata = infile.read().format(cmd[1]).encode() indata = infile.read().format(cmd[1]).encode()
infile.close() infile.close()
try: try: