Skip to content

Ericchi/moaningmyrtle-tg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moaning Myrtle

A Telegram bot made in Ruby that likes to complain a lot. Training file is not included, since it contains sensitive data. Requires megahal and telegram-bot-ruby. The bot requires you to provide a training file or a pre-existing MegaHAL brain file. The training file for MegaHAL should contain sentences that begin with "I complain" or "Brief complaint", but you can personalize it and even create a happy brain that shares joy with the chat instead. Based on LucentW's agnellopio-tg.

Installation

  1. Install Ruby. Click here for instructions
  2. Install the bot's dependencies:
    gem install telegram-bot-ruby megahal
  3. Set up the repository:
    git clone https://gitlab.com/Ericchi/moaningmyrtle-tg/
  4. Contact BotFather on Telegram to create a new bot and get a token and a username for it
  5. Rename sample-config.rb into config.rb and put your token, bot username and group ID there.
    Tip: if you don't know your group ID, you can launch the bot later, invite it into the group, send a message and check the terminal.
  6. Run megahal and train it with a list of complaints (there's a sample complaints.txt file in the repository), then save the brain file as "brain.brn". After that, do the same thing for the dreams file and create a brain named "dreams.brn". For more info click here

Running the bot

Linux

Run start.sh (sh start.sh) or use the screen command if you don't want to have the terminal occupied by the bot:
screen -S moaningmyrtle -d -m sh start.sh

Mac OS

Same as Linux

Windows

Launch your Ruby execution environment or your Windows subsystem for Linux, navigate to the bot's directory and execute it with sh start.sh

About

A Telegram bot that complains a lot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published