mirror of
https://github.com/cfultz/RandomPoke.git
synced 2025-01-19 04:56:46 +01:00
Compare commits
No commits in common. "f07fbfbeae466b8c755d83f69e7df8992a6c8628" and "53ad1ade90273ab8b0af6b3c261500fe9ed3dc3f" have entirely different histories.
f07fbfbeae
...
53ad1ade90
14
README.md
14
README.md
@ -1,14 +0,0 @@
|
|||||||
# Random Poké
|
|
||||||
This Mastodon bot posts random Pokémon cards from the Pokémon TCG universe.
|
|
||||||
|
|
||||||
# Requirements
|
|
||||||
- Mastodon.py
|
|
||||||
- python-dotenv
|
|
||||||
|
|
||||||
# How to use
|
|
||||||
- Install the pip requirements above.
|
|
||||||
- Create a ```.env``` file in the same directory including the lines:
|
|
||||||
|
|
||||||
token = ACCESSTOKENHERE
|
|
||||||
url=MASTODONURL
|
|
||||||
- Run the bot: ```python bot.py```
|
|
1
bot.py
1
bot.py
@ -1,6 +1,7 @@
|
|||||||
# Import required methods
|
# Import required methods
|
||||||
import random
|
import random
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
from requests import get
|
from requests import get
|
||||||
from json import loads
|
from json import loads
|
||||||
from shutil import copyfileobj
|
from shutil import copyfileobj
|
||||||
|
Loading…
Reference in New Issue
Block a user