A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Basic Python IRC Bot - Stikked
From Colorant Peafowl, 12 Years ago, written in Python.
Embed
  1. import socket
  2.  
  3. network = 'irc.snm.co.nz'
  4. port = 6667
  5. irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
  6. irc.connect ( ( network, port ) )
  7. print irc.recv ( 4096 )
  8. irc.send ( 'NICK botty\r\n' )
  9. irc.send ( 'USER botty botty botty :Python IRC\r\n' )
  10. irc.send ( 'JOIN #paul\r\n' )
  11. irc.send ( 'PRIVMSG #Paul :Hello World.\r\n' )
  12. while True:
  13.    data = irc.recv ( 4096 )
  14.    if data.find ( 'PING' ) != -1:
  15.       irc.send ( 'PONG ' + data.split() [ 1 ] + '\r\n' )
  16.    if data.find ( '!botty quit' ) != -1:
  17.       irc.send ( 'PRIVMSG #paul :Fine, if you don't want me\r\n' )
  18.      irc.send ( 'QUIT\r\n' )
  19.   if data.find ( 'hi botty' ) != -1:
  20.      irc.send ( 'PRIVMSG #paul :I already said hi...\r\n' )
  21.    if data.find ( 'hello botty' ) != -1:
  22.       irc.send ( 'PRIVMSG #paul :I already said hi...\r\n' )
  23.    if data.find ( 'KICK' ) != -1:
  24.       irc.send ( 'JOIN #paul\r\n' )
  25.    if data.find ( 'cheese' ) != -1:
  26.       irc.send ( 'PRIVMSG #paul :WHERE!!!!!!\r\n' )
  27.    if data.find ( 'slaps botty' ) != -1:
  28.       irc.send ( 'PRIVMSG #paul :This is the Trout Protection Agency. Please put the Trout Down and walk away with your hands in the air.\r\n' )
  29.    print data