add help and list of talents
This commit is contained in:
38
src/commands/help.js
Normal file
38
src/commands/help.js
Normal file
@ -0,0 +1,38 @@
|
||||
const cmdprefix = process.env.CMDPREFIX || '!';
|
||||
module.exports = async (message, args, db) => {
|
||||
message.author.send(
|
||||
'Hinweis: Werte in Klammern müssen nicht angegeben werden.\n\n' +
|
||||
cmdprefix + '**kopf**\n' +
|
||||
' Wirf eine Münze. Kopf oder Zahl?\n\n' +
|
||||
|
||||
cmdprefix + '**roll __Anzahl__ W __Augenzahl__**\n' +
|
||||
' Lass die Würfel rollen. Benötigt wird die Anzahl sowie die Augenzahl auf den Würfeln.\n\n' +
|
||||
|
||||
cmdprefix + '**ep/ap __Eigenschaftswert__** \n' +
|
||||
' Du machst eine Eigenschaftsprobe / Attributprobe.\n' +
|
||||
' Du würfelst mit einem W20 auf deinen Eigenschaftswert.\n' +
|
||||
' Bei einer 1 oder 20 wird der Bestätigungswurf ausgeführt.\n\n' +
|
||||
|
||||
cmdprefix + '**tp/fp __Eigenschaftswert1__ __Eigenschaftswert2__ __Eigenschaftswert3__ (Fertigkeitswert) (+Eleichtert/-Erschwert)**\n' +
|
||||
' Du machst eine Fertigkeitsprobe.\n' +
|
||||
' Es werden drei Würfel auf deine Eigenschaftswerte geworfen. Hast du Boni auf dein Talent und/oder ' +
|
||||
'ist der Wurf erleichtert oder erschwert, wird dies in die Berechnung einbezogen.\n\n' +
|
||||
|
||||
cmdprefix + '**talents**\\n' +
|
||||
' Du erhälst eine Liste mit den Talentnamen, die du für ' + cmdprefix + 'talent/skill nutzen kannst.\n\n' +
|
||||
|
||||
'Folgendes funktioniert, wenn du mir deine `tda`-Datei zuschickst:\n\n' +
|
||||
|
||||
cmdprefix + '**ep/ap Klugheit** oder ' + cmdprefix + '**ep/ap FF**\n\n' +
|
||||
|
||||
cmdprefix + '**talent __Talentname__ (+Erleichtert/-Erschwert)**\n' +
|
||||
' siehe ' + cmdprefix + 'tp.\n' +
|
||||
' Hier musst du allerdings deine Eigenschaftswerte und Fertigkeitswerte nicht raussuchen.\n\n' +
|
||||
|
||||
cmdprefix + '**skill __Talentname__**\n' +
|
||||
' Ich sage dir deinen Fertigkeitswert im Talent.\n\n' +
|
||||
|
||||
cmdprefix + '**remove**\n' +
|
||||
' Ich lösche deinen Charakter aus meiner Datenbank. Schicke mir gerne erneut eine `tda`-Datei zu.'
|
||||
);
|
||||
};
|
@ -13,10 +13,10 @@ const kopf = require('./HeadsOrTails');
|
||||
const zahl = require('./HeadsOrTails');
|
||||
const heads = require('./HeadsOrTails');
|
||||
const tails = require('./HeadsOrTails');
|
||||
const e = require('./attribute');
|
||||
const ew = require('./attribute');
|
||||
const a = require('./attribute');
|
||||
const attr = require('./attribute');
|
||||
const ep = require('./attribute');
|
||||
const ap = require('./attribute');
|
||||
const help = require('./help')
|
||||
const talents = require('./talents')
|
||||
require('dotenv').config();
|
||||
|
||||
const cmdprefix = process.env.CMDPREFIX || '!';
|
||||
@ -30,14 +30,14 @@ const commands = {
|
||||
skill,
|
||||
tp,
|
||||
talent,
|
||||
talents,
|
||||
kopf,
|
||||
zahl,
|
||||
heads,
|
||||
tails,
|
||||
e,
|
||||
a,
|
||||
attr,
|
||||
ew,
|
||||
ep,
|
||||
ap,
|
||||
help
|
||||
};
|
||||
|
||||
const Datastore = require('nedb'),
|
||||
|
13
src/commands/talents.js
Normal file
13
src/commands/talents.js
Normal file
@ -0,0 +1,13 @@
|
||||
const globals = require('../globals')
|
||||
module.exports = async (message, args, db) => {
|
||||
|
||||
let reply = 'Diese Talentnamen kenne ich:\n```';
|
||||
|
||||
for (let i in globals.Talente) {
|
||||
reply += '+ ' +globals.Talente[i].id + '\n'
|
||||
}
|
||||
reply += '```'
|
||||
message.author.send(
|
||||
reply
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user