Skip to content

masoodahm/Lee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a markov bot for Tox groupchats. It's the best ;)

More features may come along the way :)

(Any contributions are welcome)

Build status: Build Status

Features

  • support for text groupchats
  • support for 1-on-1 chats
  • markov chain
  • saving & loading Tox data file & markov chain
  • leaves groupchat when there is no one else than bot
  • ..and lots of other features ;)

Installation

Installation is fairly simple. This bot will work only on Linux.

Newest toxcore is required. For instructions on how to get it, please refer to its INSTALL.md.

  1. Install Rust
  2. Make with cargo build
  3. Run with ./target/debug/./lee

Usage

There should be a file named markov.txt available in working directory, containing sentences that could be used to initially feed bot, or markov.json, which will be generated by bot, so that there would be some initial strings to work with.

markov.txt will be used only when markov.json is not available.

Formatting of markov.txt

Custom formatting of file is used.
Lines starting with // or /* are ignored.
Lines ending with \\ are joined with next line.
Last line in a file should not be empty.

Currently supported by Lee commands are:

Groupchat commands

Command What it does
.about Send "About" message
.id Lee will say its ID
.talk Turns on talking on its own
.stahp Turns off talking on its own

By default Lee talks on its own at random times, few times per hour.

Even after turning off random talk on its own, Lee will respond to highlighting, i.e. to someone mentioning its name.

Friend commands

Command What it does
invite Invites to last groupchat in which someone spoke

License

Licensed under GPLv3+, for details see COPYING.

About

Tox markov bot in Rust :3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%