thread music. replace “whore” with “troll”.
What is this?
It’s a chatbot, although it’s so simple you might consider it just a glorified ad-lib generator.
What can it do?
A few things:
[ul][li]Form sentences. It uses pseudo-intelligent sentence structures to create sentences on the fly using words it knows.[/li][li]Learn from players. Every sentence you say will be learned from. If you say any new words that the bot doesn’t have, it will learn the word and begin to use it when it chats.[/li][li]Keep track of what it learns. It saves everything to text files. So if it learns a word you don’t want it to learn, simply edit the text file. I was going to add an in-game library editor menu but i can’t be arsed.[/ul][/li]
How does it work?
When a player speaks a sentence, such as “i will test the chatbot”, the bot dissects their sentence and checks every word. Once it comes across a word that precedes a noun, adjective or verb, it will check the next word and add it to the library if it doesn’t have it already. In this example, the words “test” and “chatbot” will be added to the verb and noun libraries respectively.
I have a suggestion to make it smarter/more fun/more modular…
Go ahead and post it, but i might not implement it depending on how hard it would be to do.
Show me pics because i don’t think this bot is real and i’m a dumb shitlord.
OKAY I BELEIVE YOU, IT MUST BE REAL… NOW GIVE IT TO ME!!!
Small update, i fixed punctuation fucking up words, and also fixed a bug causing it to learn the wrong words.
Explain the convars to me.
[ul][li]Chat Frequency: How often the bot speaks. ~30 seconds is decent, anything lower than 30 seconds is spammy. If this number is 0 the bot never talks.[/li][li]Save Frequency: How often the bot saves its libraries to avoid losing newly found words if you shut down/crash. Depending on how crashy your server is, you may want to make this lower/higher. If this number is 0 the bot never saves newly learned words.[/li][li]Learning Frequency: How many people must type something before the bot checks a sentence for new words to learn. If you have lots of players on your server, you should make this number higher than 1. If this number is 0, the bot never learns new words.[/ul] [/li]
The bot said something really racist/dumb/funny/weird to me.
I wouldn’t doubt it. Feel free to post it here.