funbot / barbot / bar script please help - 18/02/05 07:42 AM
I'm trying to make a barscript or barbot or funbot whatever you like to call it.
My problem now is that i want multiple responds for the bot to pick from.
One way to do that is via a txt file.
The problem there is that you can't give the line a command how to show up in the channel.
Example:
I have 5 responds for cola.
3 of them have to show up as a action in the room that means using the /me command.
on 1:TEXT:*:#:{
if ($1 == .cola) {
/msg $chan $read cola.txt
As you see this kind of script is using /msg to send the text from the txt file.
But I can't seem to get it working with a /me command.
I don't know if it is possible whit this kind of scripting.
Isn't there a way to put the responds in the script like this:
if ($1 == .cola) {
/me is going to get some icecold cola for $nick
/me throws a can of pepsi to $nick
/say sorry we're out of cola $nick
}
instead of a txt file?
My problem now is that i want multiple responds for the bot to pick from.
One way to do that is via a txt file.
The problem there is that you can't give the line a command how to show up in the channel.
Example:
I have 5 responds for cola.
3 of them have to show up as a action in the room that means using the /me command.
on 1:TEXT:*:#:{
if ($1 == .cola) {
/msg $chan $read cola.txt
As you see this kind of script is using /msg to send the text from the txt file.
But I can't seem to get it working with a /me command.
I don't know if it is possible whit this kind of scripting.
Isn't there a way to put the responds in the script like this:
if ($1 == .cola) {
/me is going to get some icecold cola for $nick
/me throws a can of pepsi to $nick
/say sorry we're out of cola $nick
}
instead of a txt file?