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: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"
infile = open("/royal/bot/basiclogo.svg", "r")
print(infile.read())
indata = infile.read().format(cmd[1]).encode()
print(indata.decode())
indata = infile.read().format(cmd[1]).encode("utf-8")
print(indata.decode("utf-8"))
infile.close()
try:
outfile = open(directory.format(cmd[1]), "x")