EasyAI-Py:
An easy to use artificial intelligence with multiple frameworks already made or custom frameworks. That are used to analyze environments (Environment_Processor obejct), and can also use the other half of it brain to process directives and
Setup:
Start off with specifying your AI token specific to this project like this:
>>> from easyaipy.brain.Brain import ProjectToken
>>> ProjectToken(<your choice of any string combo>)
You will need to create two json files, an admin json and an args json, to pass to the Admin object later on. (See below for a discord_admin.json example)
The Admin Object supports 4 arm_types discord, flask, gmail, console.
JSON file formats:
discord_admin.json
{
"admin_name": "<Whatever name you want>",
"auth_token": "<token that you specified to the ProjectToken object.>"
"arm_type": "discord"
}
discord_args.json
{
"question": "", # Keep this empty
"bot_token": "Njc1NTM2MTMyOTY4MDIyMDI3.Xj4k5A.JiiaTCPB0sFahg63iwT7OWKif1g",
"server": "<name of the desired server>",
"channel": "<name of the desired channel>"
}
flask_admin.json
{
"admin_name": "<Whatever name you want>",
"auth_token": "<token that you specified to the ProjectToken object.>"
"arm_type": "flask"
}
flask_args.json
{
"no_host": "<bool>",
"host": "<flask host>",
"port": "flask port"
}
gmail_admin.json
{
"admin_name": "<Whatever name you want>",
"auth_token": "<token that you specified to the ProjectToken object.>"
"arm_type": "gmail"
}
gmail_args.json
{
"self_email": "<host email>",
"app_password": "<host emails app password>",
"admin_email": "<you>"
}
console_admin.json
{
"admin_name": "<Whatever name you want>",
"auth_token": "<token that you specified to the ProjectToken object.>"
"arm_type": "console"
}
Note: You do not need to pass an args json for the console arm_type.
Usage:
from easyaipy.utils.admin import Admin
from
# Create an Admin Obect that lets you control which one person has access to the ai.