Chatbot that base on Mastodon.py for Mastodon instance
- clone repo and submodule
git clone https://github.com/SotongDJ/woof_clock_bot.git
cd woof_clock_bot
git submodule init
git submodule update --init --recursive
# future submodule update
git submodule update --remote --recursive
-
setup virtual environment (use whatever you want) and activate
-
install Mastodon.py
pip install Mastodon.py
# if python2 exist
pip3 install Mastodon.py
-
set [bot_name] in self.bot_name
-
prepare secret/token file
- secret-[bot_name].json
{ "access_token": "*insert your API token*", "hostname" : "https://*insert your mastodon instance*" }
- config-[bot_name].json
{ "sleep_time": 60 }