Teapot
Well-known member
For my own purposes, I recently created a "Users in IRC" widget for the Widget Framework, which is designed to keep a reasonably up-to-date list of users in an IRC chatroom in widget form, so it can be placed anywhere on a forum. It has two main parts:
Firstly, I have coded a Supybot IRC bot plugin - although I could easily create a similar plugin for other IRC bots such as Eggdrop - to maintain a text file with a list of usernames in it. It does this at a user-specified interval, but normally every few minutes.
The second part is a Widget Framework widget, which is powered by a small cron job to collect the aforementioned text file - either from a local file or via HTTP, if your bot is located remotely - and cache it in the data registry. By default it does this every five minutes, but due to the nature of XenForo's cron system, it can be set up to run more or less often than this. The widget itself then simply collects the user list from the data registry and displays it, so it effectively does less than most other widgets. Due to the cron job, the widget is really fast - no additional strain is placed on the server in a typical page view.
My question, and the point of this thread, is this: Would anyone else be interested in this widget? If so, I'm happy to package it up and put it on the Resource Manager, and possibly provide additional IRC-related functionality such as providing another widget for the current topic, or provide an accompanying plugin for other IRC bots. I could also try and port the widget to XenPorta if that would be useful.