项目作者: dv1x3r

项目描述 :
story generator 3000
高级语言: C#
项目地址: git://github.com/dv1x3r/assond-api.git
创建时间: 2018-08-27T21:04:36Z
项目社区:https://github.com/dv1x3r/assond-api

开源协议:MIT License

下载


Assond API

API was created as inside-joke to replace our team storyteller man.
The logic is simple: download words from google docs (to easily add new fun words), and concatenate them into the sentences.

Functions

  • public string GetWord(AssondWord aWord, bool firstLetterUppercase = false) // Get random word (Noun, Verb, Adjective, Adverb)
  • public string GetStoryLine() // Get random story
  • public string[] GetAlchemyWords() // Array of words could be used for alchemy game
  • public string MixWordsAlchemy(string firstWord, string secondWord) // Alchemy game (try to mix words and get the new one)

Usage Example

  1. var assond = new AssondNet.Assond(); // Create new 'Assond' instance
  2. await assond.DownloadWordsAsync(); // Download words database
  3. Console.WriteLine("Random story line: " + assond.GetStoryLine()); // random story
  4. Console.WriteLine("Лира + Сасонд: " + assond.MixWordsAlchemy("лира", "сасонд")); // alchemy game