diodon

command module
v0.0.0-...-8ca6736 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Diodon

Diodon is a discord bot that learn from your sentences to make his own.

Presentation

This discord bot learn form your message and make sentences with a markov chain algorithm.

Usage

You have nothing to do to make him learn.
He will answer you when you mention him (or by changing his talkiness).

Envorinment variable (cf. .env file)

The .env file can be filled with the help of the .env.tpl file.

Variables

The DISCORD variable is the discord token needed to connect to discord

The TALKINESS variable will define the frequency the bot answer by him self to your messages. It should be a float. When a message is send a random number in the interval [0.0, 1.0[ will be choosen. If the choosen number is lower to the TALKINESS the bot will spead (that mean higher is more talkiness).

The CONNECTION_STRING variable is given to the markovchaingo lib.
Here the docker compose is made to work with the file:///data.json connection string and it is a volume to the data.json file at the root of the project (the data.json file isn't commited).
Be pleased to fork and modify the bot for your need.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL