Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (21 loc) · 1.3 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.3 KB

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.