Skip to content

Helltar/artific_intellig_bot

Repository files navigation

AIBot for Telegram

Demo: https://t.me/+siikRmY3uyE5YTBi

Installation

  • CREATOR_ID: your Telegram user-ID
  • BOT_TOKEN: BotFather
  • BOT_USERNAME: BotFather (example: artific_intellig_bot)

NOTE: to get your Telegram ID, you can use @artific_intellig_bot by entering the command /myid

Docker

docker run --rm -d \
  --name aibot \
  -e CREATOR_ID=12345 \
  -e BOT_TOKEN=123:xxx \
  -e BOT_USERNAME=name_bot \
  -v aibot_data:/app/data \
  ghcr.io/helltar/aibot:latest

Or run without Docker

unzip artific_intellig_bot-0.9.8.zip && cd artific_intellig_bot-0.9.8/bin
  • Update the environment variables in the .env file
  • Install https://ffmpeg.org on your system (for /asr command)
./artific_intellig_bot # artific_intellig_bot.bat for windows

Usage

First obtain API keys:

and add them using the command in the bot:

  • /updatekey openai.com sk-qwerty
  • /updatekey stability.ai sk-qwerty

Commands

  • /chat - ChatGPT
  • /vision - GPT-4 Vision
  • /dalle - DALL·E 2
  • /sdif - Stable Diffusion
  • /dallevar - DALL·E 2 Variations
  • /asr - Automatic Speech Recognition (openai-Whisper)
  • /uptime
  • /about

Additional chat commands:

  • /chatctx - view dialogue history
  • /chatrm - clear history

For audio responses (TTS), add the #voice tag to your message, for example:

Hello, how are you? #voice

Admin commands

  • /enable commandName (example: /enable chat)
  • /disable commandName (example: /disable dalle)

NOTE: run /enable or /disable with no arguments for view supported commands

  • /ban (use as reply to user message, example: /ban reason)
  • /unban (use as reply to user message or by user ID)
  • /banlist

  • /slowmode (use as reply to user message, example: /slowmode 5) (requests per. hour)
  • /slowmodeoff (use as reply to user message or by user ID)
  • /slowmodelist

  • /addadmin (add admin by ID, example: /addadmin 123456789 username) (creator-only command)
  • /rmadmin (remove admin by ID)
  • /sudoers (view admin list, run it only in private chat)

  • /addchat (add chat to white list, use in chat or by ID) (creator-only command)
  • /rmchat (remove chat from white list, use in chat or by ID)
  • /chats (view chats list, run it only in private chat)

IntelliJ IDEA logo.