Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
/ lemmy-wikibot-rs Public archive

A lemmy bot written in Rust to send summaries of wikipedia articles mentioned in user comments

License

Notifications You must be signed in to change notification settings

Asudox/lemmy-wikibot-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lemmy-wikibot-rs

A Lemmy bot written in Rust to summarize wikipedia articles and reply to them.

How to run locally

  1. Clone the repository: git clone https://github.com/Asudox/lemmy-wikibot-rs.git

  2. Compile it with cargo: cargo build --release

  3. Edit the .env file according to this table:

Key Description
LEMMY_USERNAME_OR_EMAIL The username or email of the lemmy bot
LEMMY_PASSWORD The password of the lemmy bot
LEMMY_INSTANCE The domain name of the lemmy instance where the bot is registered at
SENTENCE_REDUCTION_LIMIT The sentence reduction limit (recommended value: 5)
  1. Run the bot: cargo run --release

TODO

  • Multiple wikipedia link support
  • Better error handling (?)
  • Fix wikipedia section support
  • Add wikipedia search functionality

License

This project is licensed under the GNU Affero General Public License.

About

A lemmy bot written in Rust to send summaries of wikipedia articles mentioned in user comments

Topics

Resources

License

Stars

Watchers

Forks

Languages