From 9a95b614990e6d58d44f9c0aee817f704f6cd940 Mon Sep 17 00:00:00 2001 From: BearTS Date: Wed, 10 Feb 2021 17:11:31 +0530 Subject: [PATCH] Fix --- package.json | 2 +- src/tamakoapi.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 584c726..45f27ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tamako-api", - "version": "1.3.3", + "version": "1.3.5", "description": "A package for using the Tamako API Easily!", "main": "index.js", "scripts": { diff --git a/src/tamakoapi.js b/src/tamakoapi.js index caa2df7..3be517d 100644 --- a/src/tamakoapi.js +++ b/src/tamakoapi.js @@ -24,6 +24,8 @@ class TAMAKOAPI extends EventEmitter { * @param {string} name Name for the chatbot * @param {string} gender Gender of the chatbot * @param {string} user User id who triggered the chatbot + * @param {string} prefix Prefix of your bot + * @param {string} dev Name of the Developer of the bot */ async chatbot(message, name = 'Tamako', gender = 'female', user = '123456', prefix = 'Not Set by Developer', dev = 'Bear#3437') { @@ -34,7 +36,9 @@ class TAMAKOAPI extends EventEmitter { const param = { name, gender, - user + user, + prefix, + dev }; for (const [key, iter] of Object.entries(param)) {