Is it possible to create a Discord bot with Mojo?
Not sure of a real use case yet, just curious.
4 Replies
There is via CPython interaction and in the future easier when we have socket and network libraries in pure mojo hooked to stdlib.
Can't we use discordpy or something and just call it from Mojo?
Yes, you could try that via the generic PyObject support, you get some benefits as the outcome is a single executable. For speedups you need to rewrite bottleneck parts in Mojo.
awesome, good to know thanks