Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
radityaharya committed Feb 25, 2024
0 parents commit a594e2b
Show file tree
Hide file tree
Showing 33 changed files with 6,255 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
BOT_NAME=bocchi
BOT_INSTRUCTION=
BOT_THREAD_PREFIX=
BOT_PRUNE_INTERVAL=6

DATABASE_URL=mysql://root:password@mysql_host.com/database_name

DISCORD_CLIENT_ID=
DISCORD_TOKEN=

OPENAI_API_KEY=
OPENAI_MODEL=
OPENAI_TEMPERATURE=
OPENAI_MAX_TOKENS=
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint"]
}
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# misc
.DS_Store
*.pem
.idea

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env

# ts-node
.ts-node

# typescript
*.tsbuildinfo
next-env.d.ts

/dist
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx pretty-quick --staged
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.ts-node
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:20.4.0-alpine3.18

WORKDIR /usr/src/app
COPY . /usr/src/app

RUN npm install && npm run build --if-present

CMD "npm" "start"
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Bocchi

Bocchi is a Discord bot built on top of [Wumpus GPT](https://github.com/capibawa/wumpus-gpt/).

## Features
- Chat with GPT
- Image generation
- Webhook notification proxy
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'

services:
bocchi:
build: .
image: bocchi
container_name: bocchi
env_file:
- .env
restart: unless-stopped
Loading

0 comments on commit a594e2b

Please sign in to comment.