Skip to content

Commit 2aaacbb

Browse files
committed
initial commit
0 parents  commit 2aaacbb

23 files changed

+3747
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = false
9+
insert_final_newline = true

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
BOT_TOKEN=
2+
MONGO_URL=
3+

.eslintrc.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
"extends": "airbnb-base",
3+
"rules": {
4+
"no-console": "off",
5+
"arrow-parens": "off",
6+
"max-len": "off",
7+
},
8+
"globals": {
9+
"Long": true,
10+
},
11+
"env": {
12+
"browser": true,
13+
"node": true,
14+
"jest": true,
15+
},
16+
"overrides": [
17+
{
18+
"files": ["**/tests/**/*.js"],
19+
"rules": {
20+
"import/no-unresolved": "off",
21+
"class-methods-use-this": "off",
22+
}
23+
}
24+
]
25+
};

.gitignore

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
build
2+
3+
# Elastic Beanstalk Files
4+
.elasticbeanstalk/*
5+
!.elasticbeanstalk/*.cfg.yml
6+
!.elasticbeanstalk/*.global.yml
7+
8+
# Logs
9+
logs
10+
*.log
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
lerna-debug.log*
15+
.pnpm-debug.log*
16+
17+
# Diagnostic reports (https://nodejs.org/api/report.html)
18+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
19+
20+
# Runtime data
21+
pids
22+
*.pid
23+
*.seed
24+
*.pid.lock
25+
26+
# Directory for instrumented libs generated by jscoverage/JSCover
27+
lib-cov
28+
29+
# Coverage directory used by tools like istanbul
30+
coverage
31+
*.lcov
32+
33+
# nyc test coverage
34+
.nyc_output
35+
36+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
37+
.grunt
38+
39+
# Bower dependency directory (https://bower.io/)
40+
bower_components
41+
42+
# node-waf configuration
43+
.lock-wscript
44+
45+
# Compiled binary addons (https://nodejs.org/api/addons.html)
46+
build/Release
47+
48+
# Dependency directories
49+
node_modules/
50+
jspm_packages/
51+
52+
# Snowpack dependency directory (https://snowpack.dev/)
53+
web_modules/
54+
55+
# TypeScript cache
56+
*.tsbuildinfo
57+
58+
# Optional npm cache directory
59+
.npm
60+
61+
# Optional eslint cache
62+
.eslintcache
63+
64+
# Optional stylelint cache
65+
.stylelintcache
66+
67+
# Microbundle cache
68+
.rpt2_cache/
69+
.rts2_cache_cjs/
70+
.rts2_cache_es/
71+
.rts2_cache_umd/
72+
73+
# Optional REPL history
74+
.node_repl_history
75+
76+
# Output of 'npm pack'
77+
*.tgz
78+
79+
# Yarn Integrity file
80+
.yarn-integrity
81+
82+
# dotenv environment variable files
83+
.env
84+
.env.*
85+
.env.development.local
86+
.env.test.local
87+
.env.production.local
88+
.env.local
89+
!.env.example
90+
91+
# parcel-bundler cache (https://parceljs.org/)
92+
.cache
93+
.parcel-cache
94+
95+
# Next.js build output
96+
.next
97+
out
98+
99+
# Nuxt.js build / generate output
100+
.nuxt
101+
dist
102+
103+
# Gatsby files
104+
.cache/
105+
# Comment in the public line in if your project uses Gatsby and not Next.js
106+
# https://nextjs.org/blog/next-9-1#public-directory-support
107+
# public
108+
109+
# vuepress build output
110+
.vuepress/dist
111+
112+
# vuepress v2.x temp and cache directory
113+
.temp
114+
.cache
115+
116+
# Docusaurus cache and generated files
117+
.docusaurus
118+
119+
# Serverless directories
120+
.serverless/
121+
122+
# FuseBox cache
123+
.fusebox/
124+
125+
# DynamoDB Local files
126+
.dynamodb/
127+
128+
# TernJS port file
129+
.tern-port
130+
131+
# Stores VSCode versions used for testing VSCode extensions
132+
.vscode-test
133+
134+
# yarn v2
135+
.yarn/cache
136+
.yarn/unplugged
137+
.yarn/build-state.yml
138+
.yarn/install-state.gz
139+
.pnp.*

.prettierrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"bracketSpacing": true,
5+
"trailingComma": "es5",
6+
"arrowParens": "avoid",
7+
"printWidth": 120,
8+
"proseWrap": "always",
9+
"jsxBracketSameLine": true,
10+
"jsxSingleQuote": true,
11+
"importSort": {
12+
".js, .jsx, .ts, .tsx": {
13+
"style": "module"
14+
}
15+
}
16+
}

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
worker: yarn start

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Web3 and Crypto Jobs Discord Bot
2+
3+
[Add it to your Discord server](https://discordapp.com/api/oauth2/authorize?client_id=458880791573954570&permissions=2048&scope=bot).

commands/get-help.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import dbConnect from 'libs/database'
2+
import { Types } from 'mongoose'
3+
import Guild from 'models/Guild'
4+
5+
module.exports = async (client: any, message: any) => {
6+
await dbConnect
7+
8+
}

commands/search-jobs.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import dbConnect from 'libs/database'
2+
import { Types } from 'mongoose'
3+
import Guild from 'models/Guild'
4+
5+
module.exports = async (client: any, message: any) => {
6+
await dbConnect
7+
8+
}

commands/set-channel.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import dbConnect from 'libs/database'
2+
import { Types } from 'mongoose'
3+
import Guild from 'models/Guild'
4+
5+
module.exports = async (client: any, message: any) => {
6+
await dbConnect
7+
const channelId = message.channel.id
8+
const guild = await Guild.updateOne(
9+
{
10+
id: message.guild.id,
11+
channelId,
12+
},
13+
{
14+
upsert: true,
15+
}
16+
)
17+
}

0 commit comments

Comments
 (0)