Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.92k stars 3.77k forks source link

How to do a command that uses exec() ? #576

Closed matcool closed 7 years ago

matcool commented 7 years ago

How do you use exec() inside a command? The only example i found is one that uses command extension, but i'm using just pure discordpy.

Rapptz commented 7 years ago

There's nothing inherent about commands extension that makes exec work differently.

Adapt the example for your needs and don't blindly copy paste and it's the same concept.

e.g. here