不是用Python编写supybot插件吗?

发布于 2024-07-15 22:33:52 字数 58 浏览 10 评论 0原文

在 ruby​​ 中编写 supybot 插件的最佳方法是什么? 或者其他语言(不是Python)?

What's the best way to write a supybot plugin in ruby? Or other language (not python)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏了南城 2024-07-22 22:33:52

简短的回答是,你不能。 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.

樱花落人离去 2024-07-22 22:33:52

您可以通过 Rython 在 Python 中使用 Ruby

You can use Ruby in Python via Rython

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文