Fromage.py is the implementation of the Fromage API created by Lautenschlager
Fromage.py is an API for the Atelier801's forums.
PRE-ALPHA
Install Fromage.py using pip
:
pip install pip install -U git+https://github.com/Athesdrake/Fromage.py
- Python 3.5.3 or higher. Earlier versions of Python are not supported
- Fromage.py uses the
aiohttp
module. It's a library for asynchronous HTTP requests.
The fromage.py API is compatible only with the rewrite version of discord.py
.
discord.py
is not required but if you want to install it, use: pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
.
TODO: make it better. Uncertain result: I want to make it that way but it's W.I.P.
import fromage
import asyncio
import aiohttp
bot = fromage.Client()
@bot.event
async def on_new_pm(msg):
print('You got a new private message from {.author} !'.format(msg))
bot.run('Username#0000', 'p455w0rd')
/!\ Use aiohttp
instead of requests
/urllib