Blockland Forums > Modification Help

So I made a chatbot...

Pages: << < (3/4) > >>

Brian Smithers:

Chatbots are generally frowned upon...
...unless they are server sided and only helpful.

Port:

The only situation where I will not instantly condemn a chatbot is if it is server-sided, actually helpful and can actually speak English (e.g. “Bot, could you please tell me what 7*4 is? Oh, and kick all the non-admins.“).

jes00:


--- Quote from: Port on April 16, 2012, 03:32:21 AM ---The only situation where I will not instantly condemn a chatbot is if it is server-sided, actually helpful and can actually speak English (e.g. “Bot, could you please tell me what 7*4 is? Oh, and kick all the non-admins.“).

--- End quote ---
You made a client sided translator chat bot.

M:

The thing about a clientsided chatbot is that 3/4 of the time they only respond to the owner anyway in which case why the forget does anyone else need to see your input. Use NMH_Type::Send(%this) where the text is %this.getValue(). For bonus points, instead of returning, use %this.setValue(%output) before parenting so it's literally just a chat preprocessor allowing for special input. You could even then set the value to a server command and have it work, as the servercmd parsing part for /cmds is done by this function.

Here's some other fun exercises for you chatbot enthusiasts:
[*]Don't make it give an error message if they're not allowed to use it (that's just stupid)
[*]Make it use your actual name to figure out if they're referring to you, rather than some friend bot name (you pretentious cunt)
[*]Use trust for permission management
[*]Parse commands using english-like syntax; this one's a doozy (I've done it partially, once)
[*]Give it actual helpful functions (such as a mathematical parser that doesn't use eval (people will try to get you to crash yourself), a Google translation API, a system people can use to leave you messages while you're AFK or for other people if you happen to see them, a voting system, a hexadecimal translator, stuff like that)
[*]Implement a message queue so multiple lines of output don't trigger all at once, to help with flood protection, and make it automatically go faster if you're an admin ($iAmAdmin is a default value containing your admin status, clientside; it's used so you don't have to check with the server to find out if you can open the admin menu - if you set it manually you can open the admin menu but it won't work. Same for loading.)
[*]As well as a message queue, allow people to tell you to stop sending messages, if your queue gets huge you could be sat there for a while. It's also a good idea to make the message queue halt sending if you're typing and resume after a delay when you send the message, or maybe cancel if you've got the chatbox open for more than ten seconds.[/list]


Things you should never do with chatbots:
[*]Automatically greet players who join the server - this is annoying for everyone, and people always say "It's to show I care!" when in fact you do not care. You have automated the process of acting like you care which is saying you care exactly enough to not want to put the effort in. Which is like saying you care about your dying aunt exactly enough to not go and visit her in the hospital, but you'll leave a note with someone who is going to visit her.
[*]Make it only answer you - this should be done entirely on your screen. If other players can't interact with it, you're acting like a pretentious friend trying to lord that you made a chatbot over others. In other words, it makes you a huge prick, and in the eyes of most people, being a huge prick is grounds for a permanent ban and you loving deserve it.
[*]Use some stupid bot name like "COMEDYBOT" - we know it's a bot you imbecile. You don't need to say it's a bot. Make it respond to your own name since we all see it as such. It feels much more natural and is in fact kind of cool.
[*]Give it a bunch of useless functions, such as RANDUMB QUOTES LOL or a BL_ID lookup. We have the RTB List (it'd be nice if there was an API for this), and nobody cares what your bot knows how to say unless it's formulating its own sentences or the messages actually contain information people might need. Try to keep your bots as some form of aide, not a toy, because nobody likes toys that make forgetloads of noise and don't do anything interesting.[/list]

Port:


--- Quote from: jes00 on April 16, 2012, 06:17:19 AM ---You made a client sided translator chat bot.

--- End quote ---

That only displays the translation to me. It is not a chatbot.

Pages: << < (3/4) > >>

Go to full version