Guest User

Untitled

a guest
Jan 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. alias colornick {
  2. if ($prop == br) {
  3. return $+([,4,$1,])
  4. }
  5. else {
  6. return $+(4,$1,1)
  7. }
  8. }
  9. ;The above alias, colours a nick and gives it square brackets, it's just easier than typing it out every time.
  10. on *:TEXT:!setgreet*:#:{
  11. if (!$2) {
  12. bs say # You need to specify a greet!
  13. }
  14. else {
  15. if ($len($2-) > 350) {
  16. bs say # Your greet should be under 350 characters!
  17. }
  18. else {
  19. if ($var($+(%,greet,$nick),1).value == $null) {
  20. set $+(%,greet,$nick) $2-
  21. bs say # Your new greet is: $colornick( $+ $nick $+ ).br $var($+(%,greet,$nick),1).value
  22. }
  23. else {
  24. bs say # Your current greet is: $colornick( $+ $nick $+ ).br $var($+(%,greet,$nick),1).value
  25. bs say # Are you sure you want to change it? Type !confirm to confirm the change.
  26. set %confirm $nick
  27. set %temphold $2-
  28. }
  29. }
  30. }
  31. }
  32. ;Used to set the greet and initialise the confirm sequence.
  33. on *:TEXT:!greet*:#:{
  34. if (!$2) {
  35. tokenize 32 $1 $nick
  36. }
  37. bs say # Your greet is: $colornick( $+ $nick $+ ).br $var($+(%,greet,$nick),1).value
  38. }
  39. ;Used to view your greet, or someone elses greet if you specify a name.
  40. on *:TEXT:!confirm:#:{
  41. if (%confirm != $null) {
  42. set $+(%,greet,$var(%confirm,1).value) %temphold
  43. bs say # Your greet has been changed to: $colornick( $+ $nick $+ ).br %temphold
  44. unset %temphold
  45. unset %confirm
  46. }
  47. else {
  48. bs say # Confirm what you silly person!?
  49. }
  50. }
  51. ;Used to confirm nick changes.
  52. on *:JOIN:#channel:{
  53. if (!$+(%,greet,$nick)) {
  54. bs say # $colornick( $+ $nick $+ ).br $var($+(%,greet,$nick),1).value
  55. }
  56. else {
  57. bs say # $colornick( $+ $nick $+ ).br Welcome $nick $+ ! Why not set a custom greet with !setgreet $+ ?
  58. }
  59. }
  60. ;Used to activate the greet script when somebody joins. Change #channel to the channel you wish to use.
  61. alias mygreet {
  62. set $+(%,greet,$me) $1-
  63. }
  64. ;Change your own greet with /mygreet GreetHere
  65. ;Note greets can only be 350 characters or less.
Add Comment
Please, Sign In to add comment