Is it possible to shut up
On every !kick a message from the BOT is displayed in main chat, but the same message is repeated by
Example:
00:04] User [NO]Baahh was kicked. (Reason: you got a upload on 128, that means max 2 upload slots open not 4, remeber min. 5kb/s pr. slot )
[00:04] <-Bure-> [TGA-OP]igooor is kicking [NO]Baahh for: you got a upload on 128, that means max 2 upload slots open not 4, remeber min. 5kb/s pr. slot
now, <-Bure-> is ok, he is logged in as BOT, but this dude, I really would like him to stay silent!
You can use ' return 1'
to tell the hub that the command is already done.
QuoteOriginally posted by VidFamne
You can use ' return 1'
to tell the hub that the command is already done.
that return 1 is in the script.
just it keeps speaking as it's send out by ptokax itself after the kick.
if CommandsTable[cmd] then
call(CommandsTable[cmd], {user,data})
return 1
end
odin is running my beta's of a.i..
just you guy's have 2 much questions that i don't have time 2 find a cure for this problem. lol
plop
Oh, sorry I didnt know that.
But it would be very interesting to look at your script.
Is it public? :))
QuoteOriginally posted by VidFamne
Oh, sorry I didnt know that.
But it would be very interesting to look at your script.
Is it public? :))
nope sorry, i asked the users from our hub's if i could release the source but they asked me not 2, and there are a bunch of hiden jokes in it. lol
it's more fun if you find them by accident. lol
but take a look @ crazy bot if that piece of code grabed your interest, that works in the same style as a.i..
without crazy bot i never could have made a.i. working this fast.
plop
Problem here I belive is that send the message before the bot, so the "return 1" won't do it. Am I wrong?
QuoteOriginally posted by Odin
Problem here I belive is that send the message before the bot, so the "return 1" won't do it. Am I wrong?
your basicly right, check the next flow chart 2 see whats happening.
data comes into ptokax
ptokax check what it is and decides what 2 do with it (send 2 bot or keep for himself)
bot gets the data in this case
bot finds the kick processes it by sending a command 2 ptokax --- ptokax responds by sending a msg from hub securety
|
|
bot speaks and does a return 1 to stop data going out.
user is gone.
as you can see it splits up, so the return 1 only works on the part from the bot stopping the command being shown in chat.
plop