The source learning irc-bot on Delphi 7. See. For additional information:
Below are excerpts from the standard of care to the bot (poluchaymoy to channel):
Teams _____________________ __________________________
Commands are instructions for the bot to which he responds in a predetermined manner. Traditionally begins with the sign of the team name!. 9Vid team:
! Sommand1 otvet1 | otvet2 | otvet3
When you run! Sommand1 will be randomly selected from the 3 options listed response and output. Let's see how you can manage teams:
! List_cmd - shows a list of commands
! View_cmd! Command1 - shows in detail command command1 with her answers
! Del_cmd! Command1 - removes command command1
! Add_cmd! Command1 otvet1 | otvet2 | otvet3 - adds a command command1 with predetermined answers
! Del_answ! Command1 otvet1 | otvet2 - removes commands command1 answers otvet1 and otvet2
! Add_answ! Command1 otvet4 | otvet5 - adds answers otvet4 and otvet5 team command1
9Vyzyvaetsya track team. follows:
15! Command1 param1 param2
In response param1 and param2 mozhnoispolzovat through built-in functions% 1% and% 2% respectively.
Greetings _____________________ __________________________
Boat can greet everyone entering the canal. Management greetings:
! Add_hello Hello! - Add the greeting "Hello!"
! Del_hello Hello! - Removes the greeting "Hello!"
! List_hello - gives a list of greetings
! Clear_hello - removes all greetings
_____________________ __________________________ Features
Greetings and responses to commands may not just text as well as text functions.
Features - Record, replaceable when processing one of his answers. Limited signs percent.
9Vstroennye in bot features:
% Date% - date,% time% - date,% day_num% - day of the week (1-7),% day_name% - name of the day,% user% - a user who sends a message (or part of the canal),% random [xy]% - random number between x and y. % Week% - current week (upper / lower).