Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeize committed Dec 25, 2023
1 parent 9f41ee1 commit ec593c8
Show file tree
Hide file tree
Showing 21 changed files with 2,747 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DISCORD_APP_ID=
DISCORD_PUBLIC_KEY=
DISCORD_BOT_TOKEN=
DATABASE_URL=
COMMANDS_DEBUG=false
DEVELOPMENT_GUILD_ID=
PORT=8020
45 changes: 45 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module.exports = {
env: {
commonjs: true,
es6: true,
node: true
},
extends: ['eslint:recommended', 'prettier/@typescript-eslint', 'plugin:prettier/recommended'],
globals: {
NodeJS: true,
BigInt: true
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
plugins: ['@typescript-eslint'],
rules: {
'prettier/prettier': 'warn',
'no-cond-assign': [2, 'except-parens'],
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': 1,
'no-empty': [
'error',
{
allowEmptyCatch: true
}
],
'prefer-const': [
'warn',
{
destructuring: 'all'
}
],
'spaced-comment': 'warn'
},
overrides: [
{
files: ['slash-up.config.js'],
env: {
node: true
}
}
]
};
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Packages
node_modules/
yarn.lock
package_lock.json

# Log files
logs/
*.log

# Miscellaneous
.tmp/
.vscode/**/*
!.vscode/extensions.json
.env
dist/
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "none",
"printWidth": 120
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div align="center">
<img width="256" src="https://raw.githubusercontent.com/buape/.github/main/buape_circle.png" alt="Buape Logo"></a>

# Buape Tags

TODO
21 changes: 21 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Buape Tags",
"description": "🏷️ Tags allows for servers to answer the most frequent questions easier.",
"repository": "https://github.com/Buape/Tags",
"logo": "https://cdn.discordapp.com/attachments/1132776820345929758/1188984983067566150/BuapeTags.png",
"scripts": {
"postdeploy": "npx slash-up sync"
},
"env": {
"DISCORD_APP_ID": {
"description": "The application ID of the Discord app"
},
"DISCORD_PUBLIC_KEY": {
"description": "The public key of the Discord app"
},
"DISCORD_BOT_TOKEN": {
"description": "The bot token of the Discord app"
}
},
"keywords": ["buape", "slash-create", "discord.js", "tags", "slash-commands"]
}
38 changes: 38 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "buape-tags",
"version": "1.0.0",
"description": "🏷️ Tags allows for servers to answer the most frequent questions easier",
"author": "Codeize",
"main": "dist/index.js",
"scripts": {
"sync": "slash-up sync",
"sync:dev": "slash-up sync -e development",
"start": "cd dist && node index.js",
"build": "npx tsc",
"dev": "npx tsc && slash-up sync && node dist/index.js",
"lint": "npx eslint --ext .ts ./src",
"lint:fix": "npx eslint --ext .ts ./src --fix"
},
"dependencies": {
"@prisma/client": "5.7.1",
"cat-loggr": "^1.2.2",
"discord.js": "^14.14.1",
"dotenv": "^8.6.0",
"fastify": "^3.29.5",
"slash-create": "^5.14.0"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^14.18.63",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.4.1",
"prettier": "^2.8.8",
"prisma": "5.7.1",
"slash-up": "^1.4.2",
"ts-node": "^9.1.1",
"typescript": "^5.3.3"
}
}
9 changes: 9 additions & 0 deletions pm2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"apps": [
{
"name": "buape-tags",
"script": "node",
"args": "dist/index.js"
}
]
}
Loading

0 comments on commit ec593c8

Please sign in to comment.