Or, with a slightly more ambitious goal involving access to outside data, backtracking and output: probot: pb_get_nicks(Ns), member(X, Ns), format(atom(G), 'Hi, ~s!', X), pb_speak(G). The idea was that it would receive commands in IRC messages in the form of Prolog goals, and it would then print the results of solving those goals. The implementation was a C program that used SWI-Prolog’s C library bindings. My previous IRC bot was called Probot, and was written in C and Prolog: C to do all the low-level networking stuff, and Prolog to provide dynamic and configurable behaviour. You just need to program the bot to understand for some commands and behave appropriately. If you have an idea for something useful or fun it can do, even better. Writing an IRC bot is an excellent project for an interactive program - within a few days you can have something that runs on the network and responds to messages. The potential applications of a bot are endless, and the only real limitation is that it has to communicate via plain text. An IRC bot is something that connects to an IRC network and provides some kind of automated service to the users on it. Since IRC is a simple protocol for sending plain text messages to channels or users, it provides opportunities for some good programming projects, such as a bot. Something I started working on last year: yet another IRC bot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |