Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Small improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
Wykerd committed Jun 17, 2020
1 parent 65fe787 commit 43bff01
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@wykerd/discord-framework": "^1.1.5",
"@wykerd/discord-framework": "^1.1.6",
"discord.js": "^12.2.0",
"mongoose": "^5.9.18",
"node-fetch": "^2.6.0",
Expand Down
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ parser.nlp.must_include = ['bazcal'];

const bot = new DiscordBot(parser, client)

bot.use('notif', TradeHandler, [amount => /\d[A-z]/.test(amount) ? convertNumber(amount) : parseInt(amount)])
bot.use(['notif', 'notify'], TradeHandler, [amount => /\d[A-z]/.test(amount) ? convertNumber(amount) : parseInt(amount)])

bot.use(['advise', 'advice'], AdviseHandler, [amount => /\d[A-z]/.test(amount) ? convertNumber(amount) : parseInt(amount)])

Expand Down
2 changes: 1 addition & 1 deletion src/handlers/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @param {*} args
*/
export const HelpHandler = (message, args) => {
message.channel.send(`<@${message.author.id}> Bazcal - A Discord bot for bazaar trading.\n\nAll commands start with the \`!bz\` prefix.\n\n\`advise\` (aliasses: advice) Simple flipping command, Params: <amount> <timeframe>\n\n\`notif\` Advanced bazaar trading. The bot tell you what to create buy orders for and notifies you when to create the sell orders for maximum profits. Params: <amount>\n\n\`license\` (aliasses: about) Sends more info regarding the bot\n\n\`lookup\` (aliasses: item, search) Returns info regarding a item. Params: <item_name>`);
message.channel.send(`<@${message.author.id}> Bazcal - A Discord bot for bazaar trading.\n\nAll commands start with the \`!bz\` prefix.\n\n\`advise\` (aliasses: advice) Simple flipping command, Params: <amount> <timeframe>\n\n\`notif\` (aliasses: notify) Advanced bazaar trading. The bot tell you what to create buy orders for and notifies you when to create the sell orders for maximum profits. Params: <amount>\n\n\`license\` (aliasses: about) Sends more info regarding the bot\n\n\`lookup\` (aliasses: item, search) Returns info regarding a item. Params: <item_name>`);
}

export const LicenseHandler = (message, args) => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1385,10 +1385,10 @@
dependencies:
xlsx "^0.15.1"

"@wykerd/discord-framework@^1.1.5":
version "1.1.5"
resolved "https://registry.yarnpkg.com/@wykerd/discord-framework/-/discord-framework-1.1.5.tgz#01b32711d7f1a2113990e401cde754d048ce5658"
integrity sha512-E/hGBrzwTckvppRRojD6RsjAG9gvCSHUCzmyKlse2lT5RmyXcHyngyFSmNvZTNKZwmXNQ9IQ8vIuh9bucmuVkA==
"@wykerd/discord-framework@^1.1.6":
version "1.1.6"
resolved "https://registry.yarnpkg.com/@wykerd/discord-framework/-/discord-framework-1.1.6.tgz#d8a29ccb1cbbde297972a3dd12342d48525e3efb"
integrity sha512-r1ZXMlEYgZdd8hblR/RT0rlgRjPE0CS6BNLRvSDIy78F58p8HS+cb8rGfgRVf2FQgadrsfOvOGtPa8aaCfDXhA==
dependencies:
discord.js "^12.2.0"
node-nlp "^4.4.0"
Expand Down

0 comments on commit 43bff01

Please sign in to comment.