Fetch command Help

By draknon on Jan 28, 2018

NEED HELP

so I managed to get the bot to fetch literally anything, the problem is that it will also fetch people that are online at the time. I know there is a way to write it all up so that it will not fetch people and will say it can't do it if it is a person.

that is what I have so far and works great except for the 1 drawback
now, I do remember that is has something to do with the "ison" command or something like that.

on 1:TEXT:!fetch*:#The-Dungeon:/describe #The-Dungeon goes into the TARDIS and gets the $2- that $nick requested and brings the $2- back to $nick

on 1:TEXT:!return*:#The-Dungeon:/describe #The-Dungeon goes to $nick and takes the $2- back into the TARDIS

Comments

Sign in to comment.
QueenElsa   -  Apr 06, 2018

Hopefully I'm not too late for this - but here you go

on 1:TEXT:!fetch*:#The-Dungeon:{
if (!$2) { notice $nick You need to tell me what to fetch! | halt }
if ($2 ison $chan) { notice $nick I cannot fetch a person from the TARDIS. | halt }
/describe #The-Dungeon goes into the TARDIS and gets the $2- that $nick requested and brings the $2- back to $nick
}

on 1:TEXT:!return*:#The-Dungeon:{
if (!$2) { notice $nick You need to tell me what to return! | halt }
if ($2 ison $chan) { notice $nick I cannot return a person to the TARDIS. | halt }
/describe #The-Dungeon goes to $nick and takes the $2- back into the TARDIS
}

 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.