Skip to content

Commit

Permalink
Move to mongodb (#51)
Browse files Browse the repository at this point in the history
* updated index to only print events if debug flag is true

* update git ignore

* Update config.json

* Update guild_list.json

* implemented mongodb connection and insertion with schema and model addition

* updating to mongo

* no message

* removed guild_list.json from config and added mongodb url

* guild insert/remove member/insert

* updating events

* update all events to mongo

* all no auth channels have been updated to mongo

* update all commands to various degrees and tested for full implementation events: guild create/delete and ready

* fixed errors with member add and remove and guild add and remove

* update mongo db events and a lot of improvements on portal

* voice state update

* update voice insert

* remove voice from portal

* delete, voice status change and presence update fix

* insert and remove member implemented

* fixed errors in events

* updated voting system mongo

* update all auth commands except of force

* force implemented

* small improvements and dont reply when message is ''

* updates to some commands and bump to yts player package

* application wide updates

* resolved issues with announce/authorise/deauthorise

* config command reply value

* fixed cooldowns and updated implementation for mongo on auth commands

* updated commands to work with mongo, except for set

* fixed all functions and set function, added the ability to remove channels (spotify/announcement/url)

* remove url and music channel implemented

* remove voice and text channel has been updated

* role assigner fixed

* fixed all attributes setting and retrieving

* removed console log

* fixed errors with jests

* bumped to 0.6.0
  • Loading branch information
keybraker authored Feb 4, 2021
1 parent ea2854b commit 655871d
Show file tree
Hide file tree
Showing 75 changed files with 3,905 additions and 3,346 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ dist
build/*

#guild status
.server_storage/guild_list.json
src/database/guild_list.json

#config
src/config.json
6 changes: 3 additions & 3 deletions docs/Attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
| `regex_portal` | _regex-guidelines for how to display portal's title_ | string | _default regex_ |
| `regex_voice` | _regex-guidelines for how to display new voice (current portal)_ | string | _default regex_ |
| `regex` | _sets regex-guidelines for current voice_ | string | _default regex_ |
| `locale_guild` | _locale used for **Portal**'s interactions_ | string (gr/en/de) | gr |
| `locale_portal` | _locale used for **Portal**'s interactions_ | string (gr/en/de) | gr |
| `locale` | _locale used for **Portal**'s interactions_ | string (gr/en/de) | gr |
| `locale_guild` | _locale used for **Portal**'s interactions_ | string (gr/en/de) | gr |
| `locale_portal` | _locale used for **Portal**'s interactions_ | string (gr/en/de) | gr |
| `locale` | _locale used for **Portal**'s interactions_ | string (gr/en/de) | gr |
| `user_limit_portal` | _guidelines for max number of members for new voice channel from current portal_ | number | 0 |
| `user_limit` | _guidelines for max number of members for current voice_ | number | 0 |
| `bitrate_portal` | _bitrate of current portal channel_ | number | 64000 |
Expand Down
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,11 @@ For frequently asked questions (FAQ) with their answers click [here](https://git
Portal is an open source project you can contribute too. There are guidelines for how to properly contribute [here](https://github.com/keybraker/portal/blob/master/docs/CONTRIBUTING.md)

> **Disclaimers**
>
>
> 1. Portal will never record conversations or store anything you type<br>
> 2. Discord update their server rate limit to twice per 10 minutes. The new rate limit for channel name and topic updates is 2 updates per 10 minutes, per channel [more here](https://github.com/discordjs/discord.js/issues/4327)<br>
> 3. Runs on nodejs 14.x
> 4. As this is a work-in-progress and new features are added weekly, if you want to give input or request a feature you can always do that at [Portal's Official Discord server](https://discord.gg/nuKXgFXr5y)

<img src="https://github.com/keybraker/portal/workflows/compile%20test%20run/badge.svg" alt="CI" /> <img src="https://img.shields.io/badge/discord.js-12.5.1-blue" alt="discord.js" /> <img src="https://img.shields.io/badge/npm-6.14.10-blue" alt="npm" /> <img src="https://img.shields.io/badge/node-14.15.4-blue" alt="node">

Expand Down
188 changes: 185 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "portal",
"author": "Ioannis Tsiakkas",
"version": "0.5.7",
"version": "0.6.0",
"private": true,
"main": "src/index.ts",
"scripts": {
Expand All @@ -22,11 +22,12 @@
"jsonfile": "^6.1.0",
"lodash": "^4.17.20",
"moment": "^2.29.1",
"mongoose": "^5.11.13",
"roll": "^1.3.1",
"translate": "^1.1.2",
"voca": "^1.4.0",
"yt-search": "^2.5.1",
"ytdl-core": "^4.4.2"
"ytdl-core": "^4.4.5"
},
"devDependencies": {
"@types/lodash": "^4.14.167",
Expand All @@ -39,4 +40,4 @@
"nodemon": "^2.0.7",
"typescript": "^4.1.3"
}
}
}
Loading

0 comments on commit 655871d

Please sign in to comment.