Skip to content

Commit ad2732f

Browse files
committed
show input
1 parent 1873d77 commit ad2732f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/sageExecution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const executeSage = async function(interaction){
3030

3131
return client.askSage(code)
3232
.then(res => {
33-
embed.description = "Output:\n```\n" + (res?.result?.["text/plain"]?.trim() || res?.stdout?.trim() || "No Output") + "\n```";
33+
embed.description = "Input:\n```py\n" + code + "\n```\nOutput:\n```\n" + (res?.result?.["text/plain"]?.trim() || res?.stdout?.trim() || "No Output") + "\n```";
3434
return interaction.editReply({ embeds: [embed]});
3535
})
3636
.catch(() => {

0 commit comments

Comments
 (0)