- Cell Phones 1586
- Desktop 760
- Editors 432
- Education, Science & Engineering 1093
- Games 2276
- Internet 4694
- Multimedia & Graphics 978
- Office software 755
- PC 470
- Programming 1877
- 1C 145
- ActiveX 3
- Assembler 30
- C# 88
- C/С++ 281
- Data Bases 402
- Delphi/Pascal 494
- Disassemblers 6
- OpenGL/DirectX 5
- PHP 155
- Setup Software 22
- Visual Basic 25
- Others 221
- Security 967
- SEO 306
- Software for Pocket PC 187
- Utilities 3854
The student IRC-bot source
Refunds: 0
Uploaded: 28.10.2008
Content: irc_bot.rar 269,08 kB
Product description
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).
Additional information
There is also a mathematical engine:% math []. Within the brackets, written expression, which is then evaluated. Understands:
+, -, *, /, ^, Pi, sin (), cos (), tan (), cotan (), parentheses.
As standard functions are declared% 1%% 2%% 3% 4%%% 5% - the parameters passed to the command:
15! Command1 param1 param2
9Kak work with functions:
! List_func - shows a list of functions
! View_func% func1% - shows in detail the function% func1% with its answers
! Del_func% func1% - delete function% func1%
! Add_func% func1% otvet1 | otvet2 | otvet3 - adds the function% func1% with predetermined answers
In response functions can be used by other functions. Botha, please do not obsess!)
9Primer team Spanish. feature:
15! Add_cmd! Nastroenie Today I% nastr_value% mood
15! Add_func% nastr_value% good | bad | Normal
Branching _____________________ __________________________
The general sense of this: let's say in a thread team used record% getage_% user %%. At the request of a user function will be called% getage_USER1% and another% getage_USER2%. And inside of these functions can be even branching well, etc. Be careful with the names of the functions that are not misled.