Tag Info

Hot answers tagged

11

Legitimate IRC bots are used all the time. On some IRC networks Chanserve and Nickserve (for managing channels and handles) are effectively IRC bots, that are just part of the network and have raised privileges. They may not be utilising eggdrop or any of the other more modern bots, but they generally aren't part of the IRC daemon itself. Other things such ...


6

There are plenty of valid use cases for IRC bots like: Reporting commits to your VCS - you can use for example cia.vc Report build failures from your CI environment Someone writes a bug number in the channel and the bot automatically posts the headline and link to it Notification about new bugs Log meetings - e.g: meetbot Deploy specific versions to ...


5

I've done this before, in the days before AJAX frameworks were widely used. Using a database was fine. The trick is to make sure that each client knows the ID of the latest message that it's seen. Each time the client asks for new messages, it should submit this ID. Then when you query the database, retrieve only those messages whose ID exceeds the one ...


4

Caching is your answer. If your shared hosting has enough resources (your application shouldn't demand much) and has some kind of cache system installed, it should be a breeze with caching. A few ways to do it: store the messages in the memory directly and retrieve from there, store the messages in the memory and use insert delayed to store them in ...


3

You can't implement real-time chat without having a server capable of coordinating it in real time. Typical shared host web server setups are not suitable for this sort of thing -- they usually don't have the right sorts of things installed and typically don't have the umph to handle the traffic in any case. So typically you'll need to secure at least your ...


2

I have an IRC bot which rolls dice for RPGs. It has support for various game systems and types of output. It's useful as it allows someone to (for example) 'roll' 30 6-sided dice, sort them by value, reroll any 6's, and report back the number of 5's or 6's rolled in total (Shadowrun). Alternately, I also have a chatbot that uses Markov models to generate ...


2

It is more up to the user of the bot to either do "evil" or "good". IRC bots can be useful in chats. E.g. moderating a IRC-channel and providing a chat interface for all kinds of functionality. One example of a useful chat bot is Hubot (with it's IRC adapter) which is used by developers to start builds and other development related tasks. It can also be ...


1

As with anything on shared hosting, it depends a little bit on what else is running on the same server, trying to use the same resources. Provided your host has a sufficient fair-usage policy in place, I think a database query every second for 20 people (the max you stated) would be fine. If you really need this to be fast, you should really invest in some ...


1

A really brief audio/video starter would be the camera basically takes a series of images incredibly quickly and stores them to a buffer, these are then encoded into a specific format to be sent to a receiving device, which gets the video, stores it into a buffer and runs it through a decoder so it understands what the video it's received is. The decoder ...


1

If you want to try something new, you can use : html5 websocket node.js or em-websocket or cramp For you, cramp might be useful. I have created a basic demo for a peer to peer chat. It is not for production, but you can find out enough information : em-wesocket Chat Demo It is done with em-websocket and socket.io. In this demo, I am not using ...



Only top voted, non community-wiki answers of a minimum length are eligible