1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2017-01-20 13:21:58 +01:00
parent 1b1c88fd65
commit 95a85a9602

4
bot.py
View file

@ -481,8 +481,8 @@ def getrygimage():
directory = "/var/www/html/rygimages/{}.png" directory = "/var/www/html/rygimages/{}.png"
infile = open("/royal/bot/basiclogo.svg", "r") infile = open("/royal/bot/basiclogo.svg", "r")
print(infile.read()) print(infile.read())
indata = infile.read().format(cmd[1]).encode() indata = infile.read().format(cmd[1]).encode("utf-8")
print(indata.decode()) print(indata.decode("utf-8"))
infile.close() infile.close()
try: try:
outfile = open(directory.format(cmd[1]), "x") outfile = open(directory.format(cmd[1]), "x")