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>
This commit is contained in:
2021-01-01 13:21:32 +01:00
committed by GitHub
parent c179bdd0e0
commit 4d19d1db21
17 changed files with 1037 additions and 120 deletions

View File

@ -72,11 +72,6 @@ async function CreateFromFile(message, data) {
if (!docs.length > 0) {
db.insert({
user: message.author.tag,
gold: 0,
silver: 0,
bronce: 0,
iron: 0,
hp: 0,
character: data,
}, function(err, docs) {
message.reply(globals.Replies.find(r => r.id === 'SAVED_DATA').string);