!request / !filled

By s-c-o-o-t on Apr 08, 2017

=-=-=!Request Section=-=-=-
if ( $1 == !request ) {
if (. !isin $2-) { .msg $chan 1,9Your request must be seperated by a period. Example: I'm.Dont.Know.What.Im.Doing | halt }
if (!$2) {
.msg $chan 1,9Error: You must include text for a request.
}
else {
.msg $chan $sb.addrequest($nick $2-)
}
halt
}
if ( $1 == !requests ) {
sb.listrequests $nick
halt
}
if ( $1 == !delrequest ) {
if (!$2) {
.msg $chan 1,9Error: You must include text of the request.
}
else {
.msg $chan $sb.delrequest($2-)
}

-=-=!filled what you have requested
}
if ( $1 == !filled ) {
if (!$2) {
.msg $chan 1,9Error: What did you fill?
}
else {
inc %filledreq
.msg $chan $sb2.delrequest($2-)
}
}
}
Now, I'm stuck. I'm looking to add a counter By who The request was filled by .. typing the !filled command. and looking forward to making an Hmake table..... so it saves it. So ex when you type !Fillstatus would show the list of people that have filled the requests. ..and a cmd !Topfilled.
anyone what a start idea can share thanks :)

Comments

Sign in to comment.
rebel9   -  7 days ago

You did not write this code, nor did you paste it properly in hawkee, you use

like this

.

Next time, give credit to the true creators, me and control. This isn't even the fixed version. Have fun lying online and being caught.

 Respond  
Charlatan   -  11 days ago

I don't know if I am do it well or bad but maybe this can help you:

if ($1 == !filled)  {
    if (!$2) msg $chan 1,9Error: What did you fill?
    else { 
      inc %filledreq
      hadd -ms Status $nick %filledreq
      msg $chan $sb2.delrequest($2-)
    }
  hsave -o Status Status.hsh
  }
  if ($1 == !Fillstatus) {
    var %i = 1
    msg $chan Fillers:
    while ($hget(Status, %i).item) {
      msg $chan %i $+ ) $v1 => $hget(Status, $v1)
      inc %i
    }
  }
}

Calculate who are the top filler maybe other can help you with that and don't forget the command: hload Status Status.hsh
to load the hash

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.