title: How to run discordpy terminal in bot
body: <p>i was looking to make a command for my bot that would allow me to run commands directly through the bot
  suchas:</p>
  <p>input: /run await ctx.send(&quot;hi stackoverflow&quot;)</p>
  <p>bot: hi stackoverflow</p>
  <p>I have been researching how to make such a command in discordpy, but the closest i got was using exec, but it just threw up <code>discord.ext.commands.errors.CommandInvokeError: Command raised an exception: SyntaxError: 'await' outside function (&lt;string&gt;, line 1)</code></p>
  <p>I hate to ask without proper code samples but any help is appreciated
  &lt;3</p>