formatting and contributing

* fixed some formatting

* contributing format

* simple style rules
This commit is contained in:
Kevin Dang
2024-01-30 16:15:35 -08:00
committed by GitHub
parent 9247463480
commit b94ff55449
8 changed files with 56 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
import { resolve } from "path"
import { config } from "dotenv"
import { resolve } from 'path'
import { config } from 'dotenv'
// Find config - ONLY WORKS WITH NODEMON
const envFile = process.env.NODE_ENV === "development" ? ".env.dev.local" : ".env"
const envFile = process.env.NODE_ENV === 'development' ? '.env.dev.local' : '.env'
// resolve config file
const envFilePath = resolve(process.cwd(), envFile)

View File

@@ -1,5 +1,5 @@
import { EmbedBuilder, Message } from "discord.js";
import ollama, { ChatResponse } from "ollama";
import { EmbedBuilder, Message } from 'discord.js'
import ollama, { ChatResponse } from 'ollama'
/**
* Method to send replies as normal text on discord like any other user

View File

@@ -1,5 +1,5 @@
import { Message } from "discord.js";
import ollama, { ChatResponse } from "ollama";
import { Message } from 'discord.js'
import ollama, { ChatResponse } from 'ollama'
/**
* Method to send replies as normal text on discord like any other user

View File

@@ -1,4 +1,4 @@
import { AxiosResponse } from "axios";
import { AxiosResponse } from 'axios'
/**
* When running a /api/chat stream, the output needs to be parsed into an array of objects