homework 1
play

Homework 1 Perl programming - TA bot release and demo attention - PowerPoint PPT Presentation

Homework 1 Perl programming - TA bot release and demo attention Irc bot fighting screen shot TAs bot Usage: perl referee.pl YOUR_NICK_NAME IDENTIFY_PASSWD TESTING_CHANNEL This bot Should be a channel operator maintain channel


  1. Homework 1 Perl programming - TA bot release and demo attention

  2. Irc bot fighting screen shot

  3. TA’s bot � Usage: perl referee.pl YOUR_NICK_NAME IDENTIFY_PASSWD TESTING_CHANNEL � This bot � Should be a channel operator � maintain channel member list � Decide fighting pair, and send ‘FIGHT’ msg � <@MCBSD> MCBSD2: FIGHT MCBSD3 1377 � <@MCBSD> MCBSD3: FIGHT MCBSD2 63933 � Kick loser and re-schedule winner � If u want to observe the fighting process � Add a normal user nick to: my @Operator = ($Nick, “XXX”);

  4. How to register channel and get OP Register ur own channel. Be careful start with double ‘#’ /msg ChanServ register ##XXXX Set channel operator, and auto-get Op after identifying and auto-login channel /msg ChanServ access ##XXXX add XXXX +voOtsriRfA

  5. Program flow Be sure u receive ur and ur opponent’s fighting msg: MCBSD2: FIGHT MCBSD3 1377 MCBSD3: FIGHT MCBSD2 63933 Hash string compare ※ seed will save as string in ur program Hex char. is bigger than opponet? Save ur opponent name, Opponent’s is bigger mine is bigger And ur and opponet’s five times five times random seed random seed no no Generate 絕招 , My energy -1. Opponent’s energy -1 and attack ur opponent: Opponent’s energy is 0? My energy is 0 ? < MCBSD2> MCBSD3: MCBSD2 下賤地 blabla.... receive attack from ur opponent: yes yes < MCBSD3> MCBSD2: MCBSD3 科科地 blabla.... Encode and hash both attack: * Me LOSER * Me WINNER xxEncode = encode_base64(xxAttack ^ xxSeed) xxHash = md5_hex(xxencode )

  6. Attention for testing bot If ur channel has unusual behavior…the admin is coming and “cares” for u…

  7. Attention for testing bot (cont.) Don’t use “bot 海戰術” to test ur bot utility… and be as minimal testing as u can �

  8. Demo environment � Irc bot: � TA will ask u and check ur program, be sure ur bot is written by right sequence. ur bot is written by right sequence. � Fight with TA’s bot under same referee bot today release @ secret channel (kerker) � Apache log analyser � Show ur result on browser

  9. Requirement modification reminder � If TA’s bot discover someone can fight with u � u will receive msg from TA’s bot: <@TABOT> ME: FIGHT OPPONENT $Seed # $Seed is a random number provide by TA’s bot # $Seed is a random number provide by TA’s bot � Apache log analyser calculate : � top 10: daily burning hour 、 user page popularity 、 file downloading popularity

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend