Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Commit

Permalink
Skeleton of discord bot, written in TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
molenzwiebel committed Sep 25, 2020
1 parent 2006daf commit 6057637
Show file tree
Hide file tree
Showing 6 changed files with 1,891 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
node_modules
dist
.env

# User-specific files
*.rsuser
Expand Down
5 changes: 5 additions & 0 deletions bot/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 4,
"arrowParens": "avoid",
"printWidth": 120
}
17 changes: 17 additions & 0 deletions bot/knexfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require("dotenv/config");

const db = {
// MikroORM
type: "postgresql",
dbName: "impostor",
clientUrl: process.env.DATABASE_URL,

// Knex
client: "postgres",
connection: process.env.DATABASE_URL
};

module.exports = {
development: db,
production: db
};
18 changes: 18 additions & 0 deletions bot/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "bot",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"@types/node": "^14.11.2",
"prettier": "^2.1.2",
"typescript": "^4.0.3"
},
"dependencies": {
"dotenv": "^8.2.0",
"eris": "^0.13.3",
"knex": "^0.21.5",
"mikro-orm": "^4.0.7",
"pg": "^8.3.3"
}
}
17 changes: 17 additions & 0 deletions bot/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"noImplicitAny": true,
"strictNullChecks": true,
"alwaysStrict": true,
"esModuleInterop": true,
"outDir": "dist",
"module": "commonjs",
"experimentalDecorators": true,
"target": "es2015",
"lib": ["esnext", "dom"]
},
"include": [
"src/**/*"
],
"exclude": ["node_modules"]
}
Loading

0 comments on commit 6057637

Please sign in to comment.