Simple wrapper for the Neirogenius API
Project description
⚠️THE API IS PRIVATE AT THE MOMENT, YOU WILL NOT BE ABLE TO USE IT!
NeirogeniusPY
NeirogeniusPY is a Python wrapper for the Neirogenius API.
Neurogenius is a discord bot created by Pelfox that entertains people. It generates funny sentences using words from server members' messages.
Installation
- Using PyPi
pip install neirogenius
- Using GitHub
git clone https://github.com/itsSourCream/NeirogeniusPY.git
cd neirogeniuspy
python setup.py install
Example usage
# Import the API class
from neirogenius import API
# Create an instance of the API class
api = API()
# Get the ID of the first guild
guild = api.get_statistic().guilds[0]['id'] # 677481923995500566
# Get the first message
message = api.get_messages(guild).messages[0] # {'guild_id': 677481923995500566,
# 'author_id': 943434038541172766,
# 'timestamp': 1650860764,
# 'content': 'Я думаю паяльник по ефектівней будет',
# 'id': '626622dc4b21d121e6eae1b1'}
# Print message content
print(message['content']) # "Я думаю паяльник по ефектівней будет"
License
This project is licensed under the Apache License Version 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
neirogenius-1.0.0.tar.gz
(7.2 kB
view hashes)