bot icon indicating copy to clipboard operation
bot copied to clipboard

Have `!eval` be able to execute code from a replied message

Open AbooMinister25 opened this issue 3 years ago • 2 comments

Summary

This proposes an enhancement to the existing !eval command that will allow !eval to evaluate code from a replied message.

The functionality could be implemented similar to commands like .uwu in lancebot. The command itself would use any given text, and if nothing was provided, use the text from a replied message.

AbooMinister25 avatar Aug 07 '22 12:08 AbooMinister25

I +1 this idea.

There's often times that I write out code, and then find myself copy-pasting it so that I can run it on !e because I forgot to do that in the original message.

Thanks to python-discord/bot-core#101 it'll be pretty easy to implement too should this be approved.

TizzySaurus avatar Aug 07 '22 13:08 TizzySaurus

Note that @AbooMinister25 has said on Discord that they'd like to implement this themselves, so if approved they should be assigned.

TizzySaurus avatar Aug 08 '22 19:08 TizzySaurus