AI_Hub_Discord Bot
1.0.0
Déployez votre propre Bot Discord d'application multi-AI.

/gpt
/gpt4
/img
[ChatGPT]:
/gpt:
+ <prompts [message]>
+ <api_key [OpenAI API Key]>
+ <model [System, User(Default), Assistant]>
+ <engine [gpt-3.5-turbo(Default), gpt-4, gpt-4-32k]> # GPT model
+ <top_p [0.0~1.0, https://platform.openai.com/docs/api-reference/chat/create#chat/create-top_p]>
+ <temperature [0.0~2.0, https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature]>
+ <presence_penalty [-2.0 ~ 2.0, https://platform.openai.com/docs/api-reference/completions/create#completions/create-presence_penalty]>
+ <frequency_penalty [-2.0 ~ 2.0, https://platform.openai.com/docs/api-reference/completions/create#completions/create-frequency_penalty]>
+ <reply_count [Defaults: 1, https://platform.openai.com/docs/api-reference/completions/create#completions/create-n]>
+ <rollback> [Rollback the conversation by n messages]
+ <reset> [Reset the conversation]
+ coming soon...
[Bing ChatGPT]:
/gpt4:
+ <prompts [message]>
+ <style [Creative, Balanced(Default), Precise]> # Conversation style
[Bard]:
/bard:
+ <prompts [message]>
+ <token [SESSION("__Secure-1PSID" cookie, https://github.com/acheong08/Bard#authentication)]>
[Bing Image Creator]:
/img:
+ <prompts [image description]>
+ <width> # Image width
+ <height> # Image height
+ <auth_cookies [_U cookie, https://github.com/acheong08/BingImageCreator#getting-authentication]>
[DALL·E]:
/dall:
+ <prompts [image description]>
+ <api_key [OpenAI API Key]>
+ <parameter [1~10, https://platform.openai.com/docs/api-reference/images/create#images/create-n]>
+ <size [256x256, 512x512, 1024x1024]>
[Command Description]:
/help
More...
Plan gratuit: 5,00 $ d'utilisation chaque mois avec une limite de temps d'exécution de 500 heures. 512 Mo de RAM, 2 VCPU et 1 Go de disque.
git clone https://github.com/Lin-Rexter/AI_Hub_Discord-Bot.git
2-1-1. Renommez le fichier .env.example à .env
2-2.
# ## "OPENAI_API_KEY", "AUTH_COOKIE", "BARD_TOKEN", "CHATGPT_MODEL", "RESPONSE_STYLE": The value returned from the command will be used first. # Discord: # Discord Bot token # https://discord.com/developers/applications DISCORD_TOKEN = " " # Discord Administrator ID(Administrator ID to mention when an unexpected error occurred in executing the command) DISCORD_ADMIN_ID = " " # ChatGPT(Official)、 DALL·E: # [ChatGPT,DALL·E authentication](OpenAI API key) # https://platform.openai.com/account/api-keys OPENAI_API_KEY = " " # Default ChatGPT_Model(gpt-3.5-turbo, gpt-4, gpt-4-32k) CHATGPT_MODEL = " gpt-3.5-turbo " # Bing Image Creator: # Bing Image Creator authentication(_U cookie) # https://github.com/acheong08/BingImageCreator#getting-authentication # If you use cookies.json(Step 3), you do not need to set AUTH_COOKIE = " " # Google Bard: # Google Bard authentication[SESSION("__Secure-1PSID" cookie)] # https://github.com/acheong08/Bard#authentication BARD_TOKEN = " " # Bing ChatGPT: # Default Bing ChatGPT response style(creative, balanced, precise) RESPONSE_STYLE = " balanced " # Bing ChatGPT authentication(Paste cookies: https://github.com/acheong08/EdgeGPT#getting-authentication-required) BING_CHAT_COOKIES =
3-1-1. Renommer le fichier cookies.example.json à cookies.json
3-2. Coller les biscuits dans les cookies.json
3-1-1. Modifier les paramètres de configuration de poésie Si vous préférez avoir l'environnement virtuel dans le répertoire du projet
poetry config virtualenvs.in-project true
3-2. Installe les dépendances spécifiées dans pyproject.toml
poetry install
3-3. Activer l'environnement virtuel
- Utiliser la version Python par défaut
poetry shell
- Si vous souhaitez spécifier la version Python
poetry env use 3.9
3-4. Bot de course
- Si vous utilisez
poetry shellpython ./bot.py
- Si vous n'utilisez pas
poetry shellpoetry run python ./bot.py
Mit