From 00ec82456ce35044d1e902e00cea7a1c0444ebc3 Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Sat, 3 Aug 2024 20:20:27 -0400 Subject: [PATCH] Updated README --- .gitignore | 2 ++ README.md | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30bd623 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env + diff --git a/README.md b/README.md index 2b38609..800c6a9 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,19 @@ The is a Mastodon bot that pulls a random Magic: The Gathering card from Scryfal ## Requirments - Mastodon.py (pip install Mastodon) +- python-dotenv (pip install python-dotenv) + ## How to Use - Clone repository -- Create file called ``token.secret`` and place Mastodon Access Token inside -- Change ``api_url_endpoint`` in ``MTGMastodonBot.py`` to your instance URL +- Create file called ``.env`` and place Mastodon Access Token and API URL inside + ``` + token = RANDOMTOKENHERE + url = MASTODONURLHERE + ``` + + - Save and run the bot. eg: ``python MTGMastodonBot.py`` ## TODO