-
Hey so I see that red is written with python; but I was wondering (I'm relatively new to programming) If it was at all possible to write a red cog in another language outside of python; say java; js; rust; etc. If so how would i go about doing that? as its something I have interest in; if not I'll use python its just something that seems like a good idea if possible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Red is a python bot, and cogs interface with the discord.py cog system to extend the bot's functionality. While it is technically possible to create a cog which allows running code written in another language (and by proxy, code additional functionality in another language), some python code would be required to build that interface. A few such cogs exist, I know Neuro has one for a few different languages. It is far from the easiest way to write a cog, however, so I would still advise writing most cogs in python. |
Beta Was this translation helpful? Give feedback.
Red is a python bot, and cogs interface with the discord.py cog system to extend the bot's functionality. While it is technically possible to create a cog which allows running code written in another language (and by proxy, code additional functionality in another language), some python code would be required to build that interface. A few such cogs exist, I know Neuro has one for a few different languages. It is far from the easiest way to write a cog, however, so I would still advise writing most cogs in python.