Is it possible to create a Discord bot with Mojo?

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