Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户加入频道时,有没有办法在用户的频道输出中显示文件/文本字符串?这是否必须在 irc 配置中发生在服务器端,或者机器人可以这样做吗?
机器人可以做到。许多服务器,例如 Freenode,支持在加入频道时通过服务器的服务向用户发送通知。
无论哪种方式,您都可以让机器人对加入事件做出反应并向用户发送消息 (/msg) 或通知 (/notice)。或者,如果服务器支持此服务,则让服务器发送条目消息。最常见的做法是使用“/chanserv set entrymsg my_message”。