Is it possible to create a Discord bot with Mojo?

Not sure of a real use case yet, just curious.
4 Replies
ksandvik
ksandvik14mo 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
Logan14mo ago
Can't we use discordpy or something and just call it from Mojo?
ksandvik
ksandvik14mo 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
Logan14mo ago
awesome, good to know thanks
Want results from more Discord servers?
Add your server