fix path
This commit is contained in:
@@ -136,7 +136,7 @@ async def board(ctx):
|
||||
await ctx.send("No active game in this channel!")
|
||||
return
|
||||
|
||||
os.system("sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf")
|
||||
os.system("/home/nik/.cargo/bin/sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf")
|
||||
file = discord.File(str(ctx.channel.id)+".png")
|
||||
|
||||
await ctx.send(file=file)
|
||||
@@ -163,7 +163,7 @@ async def newgame(ctx, handicap=0, komi=6.5):
|
||||
|
||||
sgfengine.new_game(str(channel_id), handicap, komi)
|
||||
|
||||
os.system("sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf")
|
||||
os.system("/home/nik/.cargo/bin/sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf")
|
||||
|
||||
file = discord.File(str(channel_id)+".png")
|
||||
|
||||
|
Reference in New Issue
Block a user