We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1873d77 commit ad2732fCopy full SHA for ad2732f
src/service/sageExecution.js
@@ -30,7 +30,7 @@ const executeSage = async function(interaction){
30
31
return client.askSage(code)
32
.then(res => {
33
- embed.description = "Output:\n```\n" + (res?.result?.["text/plain"]?.trim() || res?.stdout?.trim() || "No Output") + "\n```";
+ embed.description = "Input:\n```py\n" + code + "\n```\nOutput:\n```\n" + (res?.result?.["text/plain"]?.trim() || res?.stdout?.trim() || "No Output") + "\n```";
34
return interaction.editReply({ embeds: [embed]});
35
})
36
.catch(() => {
0 commit comments