mirror of
https://github.com/cfultz/RandomPoke.git
synced 2025-01-18 20:46:46 +01:00
Compare commits
2 Commits
53ad1ade90
...
f07fbfbeae
Author | SHA1 | Date | |
---|---|---|---|
|
f07fbfbeae | ||
|
670c2a22fb |
14
README.md
Normal file
14
README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# 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,7 +1,6 @@
|
|||||||
# 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