Is it possible to create a Discord bot with Mojo?

Not sure of a real use case yet, just curious.
4 Replies
ksandvik
ksandvik17mo ago
There is via CPython interaction and in the future easier when we have socket and network libraries in pure mojo hooked to stdlib.
Logan
Logan17mo ago
Can't we use discordpy or something and just call it from Mojo?
ksandvik
ksandvik17mo ago
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.
Logan
Logan16mo ago
awesome, good to know thanks

Did you find this page helpful?