Advertisement
Termz

Untitled

Feb 9th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. ;BlaBlaBla - 0/02/2012 - Version #1.3
  2. ;Made by Code-Y of Rizon.net
  3. ;This bot will only work when it's using its official nickname
  4. ;This official nickname is set below:
  5. on *:start: {
  6. ;Right here V
  7. set %name $iif(%pname,%pname,CAFBot)
  8. ;Right there^
  9. server -m irc.rizon.net -j #eCanCAF
  10. nick %name
  11. }
  12. on $*:TEXT:/[.!@]setup/Si:*: {
  13. if ($me == %name) {
  14. if ($nick == sawc) {
  15. if (!$2) {
  16. msg $nick To set me up, type !setup [My name] [a list of people who can use .list and .setprio]
  17. msg $nick Example: !setup CAFBot Termz Sawc Snowblade
  18. }
  19. else {
  20. set %pname $2
  21. set %owner $3-
  22. msg $nick Setup Complete!
  23. nick %name
  24. }
  25. }
  26. }
  27. }
  28. on $*:TEXT:/[.!@](battle|orders|prio)/Si:#: {
  29. if ($me == %name) {
  30. if (!%nospam) {
  31. set -u3 %nospam Spam Protection, dur!!
  32. if (%prio) {
  33. msg # Priority #1: $replace($gettok(%prio,1,153),[,[03,],]) - Updated by: $gettok(%prio,2,153)
  34. }
  35. else msg # There are currently no priorities set! Ask Sawc to set some with the !setprio command in PM.. Lazy bitch.
  36. }
  37. }
  38. }
  39. on $*:TEXT:/[.!@]setprio/Si:*: {
  40. if ($me == %name) {
  41. if (!%owner) notice $nick You have not set any owners! Type !setup please.
  42. else {
  43. if ($nick isin %owner) {
  44. if ($2) {
  45. set %prio $2- $chr(153) $nick
  46. msg $nick Priorites have been set to the following: %prio1 %prio2 %prio3
  47. }
  48. else msg $nick The syntax is: !setprio Priority1 link (optional)priority2 link (optional)priority 3 link!
  49. }
  50. else msg $nick Fark off. Admins only!
  51. }
  52. }
  53. }
  54. on $*:TEXT:/[.!@]call/Si:#: {
  55. if ($me == %name) {
  56. if ($nick isin %owner) {
  57. var %x $nick($chan,0)
  58. while (%x) {
  59. var %g %g $nick($chan,%x)
  60. dec %x
  61. }
  62. msg # %g
  63. if ($2) {
  64. msg # 8,4 $+ $2-
  65. }
  66. else {
  67. notice $nick Highlight complete. No sentence was inputted so no message shall be displayed.
  68. }
  69. }
  70. else notice $nick Bitch please, I'm protected. Ask sawc to get on this list.
  71. }
  72. }
  73.  
  74. on *:join:#EcanCAF: {
  75. if ($readini(blank.ini,entries,$nick)) {
  76. msg # [02 $+ $nick $+ ] $readini(blank.ini,entries,$nick)
  77. }
  78. }
  79. on $*:TEXT:/[.!@]Entrymsg/Si:#: {
  80. writeini blank.ini entries $nick $2-
  81. notice $nick Your entry message for # has been set to "04 $+ $2- $+ "
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement