Sueta
AI

AI-Core

2016-08-22

AI sentence generating library

·Plugin

AI-Core is a Library which uses JMegaHAL to generate sentences for use with plugins such as chatbots. The AI can also be populated with sentences from other websites, which gives the AI more material to work with. The AI also learns from what users say on the server as well

This is mainly for developers, however server owners can customize the content the AI learns from.

Currently supported websites:

  • 4chan.org

Planned Features:

  • Ability for Developers to create multiple AI's and customize them (currently only one 'main' AI is used)
  • Support more websites such as Reddit and Twitter.

Plugins which use AI-Core (PM me if you want me to add yours)

Config Options:

#if true, the 4chan board scraper will be enabled which will
#load the AI with content from 4chan. Support for other websites
#like reddit coming later.
boardscraper: true

#boards from 4chan the bot with gather posts from
boards:
  - b
#how many pages worth of threads which will be loaded into the brain
#each value corresponds to the boards in the list above
#do not go over 10. the larger the number the longer it takes to load
boarddepths:
  - 10
#how often (in hours) the chatbots brain will be updated with new content
update-frequency: 12

#If set the true, the AI will learn from players when they chat in game
LearnFromChat: true

debug: false

API Methods

//Generates a sentence based on the sentence given. If no sentence is specified the returned String will be generated at random
AICore.GenerateSentence(sentence);

//adds a sentence to the AI's brain file
AICore.addSentence(sentence);

If you have any suggestions or issues please feel free to post them.

Like my work? Support me by donating!

Similar projects

Plugin →