Skip to content

Commit

Permalink
Typescript refactor (#41)
Browse files Browse the repository at this point in the history
* small part of transition done

* a lot or architectural changes and progress on typescript transition

* first compile after beginning the transition to typescript

* all seem to work well, must proceed with complete refactor to reach a working state

* A lot of progress but a lot more to be finished

* types and libs finished

* small fixes

* upodated half the events

* message reaction event transitioned

* finished with events

* small updates

* fully working events not commands need to get updated and transition can go to next stage of refinement and testing

* update compilation problems

* half commands done corona only new has been updated old will remain js

* 1/3 of commands remaining

* finished with commands testing and transition is complete

* updated portal channel creation to be unified among portal types and fixed announcements

* portal spawn and movement of users fixed

* bug fixes

* a lot of fixes

* a lot of bug fixes and save json fixed

* remove on log back on for all data variables controlled by portal

* updates and new tree command to see what portal controls in current server

* setup has been fixed

* renamed auth_role commands to full authorise and updated bug fixes

* bulk delete has been implemented and role renamed to role_assigner

* updated help to be easier for a beginner to comprehend

* regex interpreter has been update, fixed attribute recognition

* updated help with structures and help description

* set attributes has been fixed

* updated the way portal tree displays information

* removed debugging console logs and client write and client talk functions

* git token test

* weather command implemented, and updated design of embedded messages

* cleaned up *** from the project updated a lot of things and cleaned up code. Also implemented translate and whoami commands

* set ranks and ranks has been fixed

* role giver and assigner update need more work

* fixed role giving messages and reactions to them plus reactions to music video

* updated to 1.5.0 and fixed small problems with guild insertion and updated design of state

* small update

* changed prefix for merge

* updated annoying messages and readme file, plus some bug fixes, yml and tests

Co-authored-by: Ioannis Tsiakkas <csd3213@csd.uoc.gr>
  • Loading branch information
keybraker and Ioannis Tsiakkas authored Jan 8, 2021
1 parent 528edf5 commit 6c96cb0
Show file tree
Hide file tree
Showing 244 changed files with 8,611 additions and 14,625 deletions.
90 changes: 45 additions & 45 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
module.exports = {
'extends': 'eslint:recommended',
'env': {
'node': true,
'es6': true,
},
'parserOptions': {
'ecmaVersion': 2019,
},
'rules': {
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': true }],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': 'error',
'comma-style': 'error',
'curly': ['error', 'multi-line', 'consistent'],
'dot-location': ['error', 'property'],
'handle-callback-err': 'off',
'indent': ['error', 'tab'],
'max-nested-callbacks': ['error', { 'max': 4 }],
'max-statements-per-line': ['error', { 'max': 2 }],
'no-console': 'off',
'no-empty-function': 'error',
'no-floating-decimal': 'error',
'no-lonely-if': 'error',
'no-multi-spaces': 'error',
'no-multiple-empty-lines': ['error', { 'max': 2, 'maxEOF': 1, 'maxBOF': 0 }],
'no-shadow': ['error', { 'allow': ['err', 'resolve', 'reject'] }],
'no-trailing-spaces': ['error'],
'no-var': 'error',
'object-curly-spacing': ['error', 'always'],
'prefer-const': 'error',
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'space-before-blocks': 'error',
'space-before-function-paren': ['error', {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always',
}],
'space-in-parens': 'error',
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'spaced-comment': 'error',
'yoda': 'error',
},
};
'extends': 'eslint:recommended',
'env': {
'node': true,
'es6': true,
},
'parserOptions': {
'ecmaVersion': 2019,
},
'rules': {
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': true }],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': 'error',
'comma-style': 'error',
'curly': ['error', 'multi-line', 'consistent'],
'dot-location': ['error', 'property'],
'handle-callback-err': 'off',
'indent': ['error', 'space'],
'max-nested-callbacks': ['error', { 'max': 4 }],
'max-statements-per-line': ['error', { 'max': 2 }],
'no-console': 'off',
'no-empty-function': 'error',
'no-floating-decimal': 'error',
'no-lonely-if': 'error',
'no-multi-spaces': 'error',
'no-multiple-empty-lines': ['error', { 'max': 2, 'maxEOF': 1, 'maxBOF': 0 }],
'no-shadow': ['error', { 'allow': ['err', 'resolve', 'reject'] }],
'no-trailing-spaces': ['error'],
'no-var': 'error',
'object-curly-spacing': ['error', 'always'],
'prefer-const': 'error',
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'space-before-blocks': 'error',
'space-before-function-paren': ['error', {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always',
}],
'space-in-parens': 'error',
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'spaced-comment': 'error',
'yoda': 'error',
},
};
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
check-latest: true
- run: npm install
- run: npm ci
- run: npm lint
- run: npm run build --if-present
- run: npm test
- run: npm start
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"compile-hero.disable-compile-files-on-did-save-code": true
}
20 changes: 0 additions & 20 deletions assets/classes/guild_class.js

This file was deleted.

10 changes: 0 additions & 10 deletions assets/classes/member_class.js

This file was deleted.

19 changes: 0 additions & 19 deletions assets/classes/portal_class.js

This file was deleted.

5 changes: 0 additions & 5 deletions assets/classes/role_class.js

This file was deleted.

15 changes: 0 additions & 15 deletions assets/classes/voice_class.js

This file was deleted.

182 changes: 0 additions & 182 deletions assets/jsons/cooldown_list.json

This file was deleted.

10 changes: 0 additions & 10 deletions config.json

This file was deleted.

Loading

0 comments on commit 6c96cb0

Please sign in to comment.