Guest User

Untitled

a guest
Oct 21st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. alias bumpremind {
  2. timer 0 900 bumpnotify
  3. }
  4. on $*:TEXT:/^[!.@]addbumpremind/i:%tbl.chans: {
  5. if (!$read(names.txt,w,$nick)) {
  6. if ($1) {
  7. write names.txt $1
  8. }
  9. else {
  10. write names.txt $nick
  11. }
  12. .notice $nick $c($nick Your name has been £added^ to the bump reminder list. You will be notified £every 15 minutes^ to bump the thread. Use the £.delbumpremind^ command to remove yourself from this list.)
  13. }
  14. else .notice $nick $err(Your name is already on the list.)
  15. }
  16. on $*:TEXT:/^[!.@]delbumpremind/i:%tbl.chans: {
  17. if ($read(names.txt,w,$nick)) {
  18. if ($1) {
  19. write -dw $+ $1 names.txt
  20. }
  21. else {
  22. write -dw $+ $nick names.txt
  23. }
  24. .notice $nick $c($nick Your name has been £removed^ from the bump reminder list. Use the £.addbumpremind^ command to add yourself back to the list if you wish to recieve notifications asking you to bump the thread again.)
  25. }
  26. else .notice $nick $err(Your Current nick is not on the reminder list.)
  27. }
  28. alias bumpnotify {
  29. set %fileposition 1
  30. while (%fileposition <= $lines(names.txt)) {
  31. set %name $read(names.txt,%fileposition)
  32. if (%name ison #british_legion) {
  33. .notice %name $c(%name Remember to bump $+ $chr(44) %name $+ .)
  34. }
  35. inc %fileposition 1
  36. }
  37. unset %fileposition
  38. }
Add Comment
Please, Sign In to add comment