From 2a6cbecd28c43f0345667c34ee1321fb0796f7be Mon Sep 17 00:00:00 2001 From: Hash Borgir Date: Mon, 12 Feb 2024 19:48:09 -0700 Subject: [PATCH] Added installer script. Fixed simplematrixbotlib stability issue in api.py --- .gitignore | 3 ++- README.md | 13 +++++++++++-- requirements.txt | 1 - 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 708044a..d9c98a0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ proxies.db session.txt socks5.txt venv/ -plugins/__pycache__/ \ No newline at end of file +plugins/__pycache__/ +simplematrixbotlib/ diff --git a/README.md b/README.md index 58d8929..f6e3c6b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,16 @@ Matrix Bot is a Python-based chat bot designed to work with Matrix, an open netw - Plugin system: Each command is implemented as a separate plugin module, allowing for easy customization and extension. - Extensible: Users can add new commands by creating additional plugin modules. -## Installation +## Automatic Installation +1. `./install.sh` or `bash install.sh` + +2. Set up environment variables: +Put your bot homeserver/user/pass in `.env` file + +3. Launch the bot: +`python funguy.py`, or `chmod +x funguy.py`, then `./funguy.py` + +## Manual Installation 1. Clone the repository: `git clone https://git.stoned.io/hash/FunguyBot` @@ -29,7 +38,7 @@ MATRIX_PASS="" ``` 4. Run the bot: -`python funguy.py`, or `chmod +x funguy.py`, then `./funguy.py` in the bot directory. +`python funguy.py`, or `chmod +x funguy.py`, then `./funguy.py` ## Usage diff --git a/requirements.txt b/requirements.txt index ada2126..05f4d47 100644 --- a/requirements.txt +++ b/requirements.txt @@ -29,7 +29,6 @@ pytube==15.0.0 referencing==0.33.0 requests==2.31.0 rpds-py==0.17.1 -simplematrixbotlib==2.10.3 toml==0.10.2 unpaddedbase64==2.1.0 urllib3==2.2.0