不是用Python编写supybot插件吗?
在 ruby 中编写 supybot 插件的最佳方法是什么? 或者其他语言(不是Python)?
What's the best way to write a supybot plugin in ruby? Or other language (not python)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的回答是,你不能。 Supybot 是用 Python 编写的,无法加载 Ruby/其他语言模块/文件。 理论上,您可以用 C/C++ 编写插件,Supybot 可能会尝试加载它们。 但您需要深入研究 Python API,因为没有与 Supybot 代码的绑定。
如果您更喜欢 Ruby 而不是 Python,您可以使用 rbot 一个用 Ruby 编写的 IRC 机器人。
The short answer is, you can't. Supybot is written in Python and there is no way to load Ruby/other language module/files. Theoretically you could write the plugin in C/C++ and Supybot may attempt to load them. But you'll need to dig deep into the Python API as there are no bindings to the Supybot code.
If you prefer Ruby over Python you could use rbot an IRC bot written in Ruby.
您可以通过 Rython 在 Python 中使用 Ruby
You can use Ruby in Python via Rython