SotongDJ / woof_clock_bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

woof_clock_bot

Chatbot that base on Mastodon.py for Mastodon instance

Installation

  • 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

Configuration

  • 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
    }

About

License:GNU General Public License v3.0


Languages

Language:Python 100.0%