Pages

Sky AI Setup

Requirement:

  • A VPS Server you can get one from ionos for 2$
  • For the OS you want Ubuntu 22.04.4
  • A text editor, We recommend Visual Studio Code
  • A discord bot app from the Discord developer portal
  • You want to install Node.js V18.17.1
  • You will need to have a mongodb you can get one for free from mongodb.com
  • You will need to install ollama that is the AI backend that the bot uses you can get that from ollama.com if you dont know how to set that up or are having problems i can let you use my ollama API backend for yours

Step #1

Fill the info that is needed here in your config

MainSettings:

  •   Name: "" # Your Bots Name
  •   TOKEN: "" # Your Bot Token
  •   MONGODBURL: "" # Mongo DB URL
  •   CLIENT_ID: "" # Put your Client ID in here.
  •   Embedcolor: "Red" # The Embed Color
  •   BotOwner: "" # The Bot Owner's ID

Step #2

Here you can set a custom status for the bot

Status:

  •   Mode: "Online" # Status mode, e.g., "online", "idle", "dnd"
  •   Timer: 10000 # Set the timer for the status
  •   Set1: ""
  •   Set2: ""
  •   Set3: ""
  •   Set4: ""

Step #3

Fill the info that is needed here in your config

!! if you are using my API backend do not change any of the settings here only the AI API END POINT URL !!

AISettings:

  •   AI_Model: "llama2"
  •   AI_API_End_Point: ""
  •   timeout: 240000
  •   requestWindowTime: 60000 # 1 minute in milliseconds
  •   maxRequestsPerWindow: 3 # Adjust based on your server's capabilities and AI service limits
  •   concurrent: 5 # Adjust this based on the server's capabilities

Step #4

Fill the info that is needed here in your config

You can get this info from your discord server by going to the settings of any channel and creating a WebHook

WebhookLogging:

  •   enabled: true  # If you want to enable Webhook Logging, set this to true.
  •   WebhookID: ""   # Webhook ID
  •   WebhookTOKEN: "" # Webhook Token
  •   AIWebhookID: "" # AI Webhook ID
  •   AIWebhookTOKEN:  "" # AI Webhook Token

Step #5

Run the following commands

  • apt update && apt upgrade -y
  • curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh
  • curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
  • source ~/.bashrc
  • nvm list-remote
  • nvm install v18.17.1
  • cd /Path/to/SkyAI
  • npm install # in the bots directory on the server
  • node src/index.js # this is so we can test the bot to make sure everything is working before we proceed to the next step
  • npm install pm2 -g # run this after you tested the bot
  • pm2 start src/index.js --name SkyAI # or pm2 start src/index.js --name YourBotsNameHere

if you need further support please open a ticket in our Discord server or on our website