Commit Graph

27 Commits

Author SHA1 Message Date
8b3d9b4c78 Remove dependency Random, node-fetch (#48)
* removed dependency to Random

* removed dependency to node-fetch

* remove node-fetch, add got

* unstringify json
2021-05-07 22:51:03 +02:00
ba63be64dd merge dev branch (more tests) (#47)
* more tests and bugfixes on spells

* linting
2021-05-06 19:35:58 +00:00
25ad8ad160 removed string concatenation (#46) 2021-05-06 19:29:16 +00:00
79c95cea97 (dev) remove rewire, add babel-plugin-rewire. (#44)
* removed rewire. now using babel-rewire instead

* implemented more tests

* changed some eslint params

* linting

* linting

* coverage on getChant

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>
2021-05-06 10:52:33 +00:00
4fa2dc7ab7 (fix) !spells and !chants returned null value (#40) 2021-05-04 20:39:59 +00:00
895f47847e Tweak: Add --all to !List command (#39)
* tweaked on list command

* added more tests
2021-05-03 19:44:05 +00:00
c6cacdae5e switched nedb to nedb-promises (#37)
* breaking change: switched to nedb-promises
* Linting
* some dev dependencies
* more tests
* updated package version
* bug fixing
* changed isNaN to isString
* (fix) args[0]
2021-05-03 18:39:33 +02:00
dc746276ab fix attribute checks (#34) 2021-05-01 21:21:33 +00:00
d45e4faad6 Security fixes (#32)
* Generic Object Injection Sink

* (fix) "Character" is not defined.

* added eslint

* improve code quality, use refactored function

* (fix) eslint jest

* "Character" is not defined

* removed unused file Compare.js

* (fix) PointsUsed is not defined

* (fix) eslint moans jsconfig

* turn off "no-prototype-builtins"

* push code coverage
2021-05-01 20:13:15 +02:00
351c90577f (fix) attack handler, more tests. (#30) 2021-05-01 07:12:07 +00:00
f22df0dec1 Refactoring (#29)
* refactor Attack command

* add test to Attack functions

* changed README.md

* install dev dependency rewire

* stop autoloading due to ci errors
2021-04-30 23:14:27 +02:00
23418bbc60 Add Skillchecks for Magical Talents (#25)
* initial implementation of spells

* added return list of spells. Moved them into seperate json

* added _some_ chants, restructuring data from spells

* added more chants, added command for getting info

* added related messages, added skillcheck for spells (cast)

* better error handling, added chant command

* (fix) Chants were referring to spells

* cleanup testing variables and code

* updated README

* fixed storage location issues and minor bugs

* removed db storage location

* rc1

* (fix) chants_title

* (fix) Uncaught ReferenceError: Discord is not defined

* (fix) more reference errors

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>
2021-04-28 19:33:30 +02:00
b49873e1d4 Fix sum of roll (#24)
* (fix) sum of dice rolls not displaying total result
2021-04-28 13:23:23 +02:00
126dce828d Cleanup (#19)
* reformatting of skill checks table

* Including own Random "generator", more refactoring
2021-04-22 17:36:10 +02:00
91e62f3b28 refactored Skillcheck Command 2021-04-20 18:09:34 +02:00
6ec0a2fe68 refactored Skill command 2021-04-18 22:13:36 +02:00
0b2c3d9d82 (fix) Attributes command did not work after refactoring 2021-04-18 18:35:53 +02:00
2f69625fc3 cleanup old code 2021-04-18 15:55:39 +02:00
ff7f1b12a2 refactoring Talents Command. Refactoring Capitalization 2021-04-18 15:53:08 +02:00
789a8b73e2 refactoring of Weapons command 2021-04-18 15:27:40 +02:00
24a07c4588 refactoring (#4) 2021-04-10 19:17:18 +02:00
9c0c365cd5 Jslint (#14)
* linting, rolling dice now calculates the sum of each shown value.

* package update
2021-02-09 17:23:23 +01:00
3cbd3bd0e3 added parry command (#10)
Co-authored-by: Marcus Netz <marcus.netz@godyo.com>
2021-01-05 18:33:58 +01:00
f934a7aa65 each point above Leiteigenschaft adds to damage result. (#9)
Co-authored-by: Marcus Netz <marcus.netz@godyo.com>
2021-01-05 18:33:10 +01:00
c62525661d Development (#7)
* fixing typos

* merge Dynamic commands (#3)

* Update README.md

* Update README.md

* fixing typos

* dynamically read new commands inside folder.

* eslint, update package.json due to moving files

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>

* fix talent checking on empty arguments list

* Origin/message embed (#4)

* add first embedded message on tp.js

* move db from message commands

* fix missing arguments list, add need_args

* add global Message Replies.

* add more global Message Replies.

* more embedded messages. fixing string

* missing comma

* adding a few more strings on talents.

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>

* fixing creating from json file

* bugfix: db not defined

* possible  fix for nonworking talent?

* fix double msg

* fix: aliases are now being used

* change: show command displays now some character attributes

* added various aliases to commands, added global strings.

* added melee combat rolling.

* removed purse from creation of character

* added attack command to bring some combat features.

* added weapons command, renamed some command files.

* updated README for new commands

* Delete add.js

* Delete attribute.js

* Delete help.js

* Delete remove.js

* Delete roll.js

* Delete show.js

* Delete skill.js

* Delete talent.js

* Delete talents.js

* Delete tp.js

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>
2021-01-01 13:32:29 +01:00
4d19d1db21 Update to latest development branch (#6)
* fixing typos

* merge Dynamic commands (#3)

* Update README.md

* Update README.md

* fixing typos

* dynamically read new commands inside folder.

* eslint, update package.json due to moving files

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>

* fix talent checking on empty arguments list

* Origin/message embed (#4)

* add first embedded message on tp.js

* move db from message commands

* fix missing arguments list, add need_args

* add global Message Replies.

* add more global Message Replies.

* more embedded messages. fixing string

* missing comma

* adding a few more strings on talents.

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>

* fixing creating from json file

* bugfix: db not defined

* possible  fix for nonworking talent?

* fix double msg

* fix: aliases are now being used

* change: show command displays now some character attributes

* added various aliases to commands, added global strings.

* added melee combat rolling.

* removed purse from creation of character

* added attack command to bring some combat features.

* added weapons command, renamed some command files.

* updated README for new commands

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>
2021-01-01 13:21:32 +01:00
c179bdd0e0 Merge development into master (#5)
* fixing typos

* merge Dynamic commands (#3)

* Update README.md

* Update README.md

* fixing typos

* dynamically read new commands inside folder.

* eslint, update package.json due to moving files

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>

* fix talent checking on empty arguments list

* Origin/message embed (#4)

* add first embedded message on tp.js

* move db from message commands

* fix missing arguments list, add need_args

* add global Message Replies.

* add more global Message Replies.

* more embedded messages. fixing string

* missing comma

* adding a few more strings on talents.

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>

* fixing creating from json file

* bugfix: db not defined

* possible  fix for nonworking talent?

* fix double msg

* fix: aliases are now being used

* change: show command displays now some character attributes

* added various aliases to commands, added global strings.

Co-authored-by: Marcus Netz <marcus.netz@godyo.com>
2020-12-16 08:53:09 +01:00