From 8d8ff5fe5d64c8306e55b5161fa252213aec0a84 Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Mon, 20 Nov 2017 08:08:16 -0800 Subject: [PATCH 01/14] fix username issues https://github.com/lbryio/lbry-wunderbot/issues/87 --- bot/modules/lbrylink.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bot/modules/lbrylink.js b/bot/modules/lbrylink.js index f55ca57..506031e 100644 --- a/bot/modules/lbrylink.js +++ b/bot/modules/lbrylink.js @@ -10,10 +10,15 @@ exports.lbrylink = function(bot, msg, suffix) { return; } var link = msg.content.indexOf("lbry://"); + console.log(link); if (link != -1) { var text = msg.content.replace("lbry://", "https://open.lbry.io/"); + console.log(text); var message = GetWordByPos(text, link); - if (text.search("<") != -1) { + if (message === "https://open.lbry.io/") { + return; + } + if (message.search("<") != -1) { var name = "@" + msg.mentions.members.first().user.username; var trim = message.split("/").pop(); var trim2 = trim.substr(2); From ecff38eaad50a64ee68d005acfb0fd8d7a5fc74f Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Mon, 20 Nov 2017 08:09:15 -0800 Subject: [PATCH 02/14] remove uneeded console.logs --- bot/modules/lbrylink.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/bot/modules/lbrylink.js b/bot/modules/lbrylink.js index 506031e..5d911a5 100644 --- a/bot/modules/lbrylink.js +++ b/bot/modules/lbrylink.js @@ -10,10 +10,8 @@ exports.lbrylink = function(bot, msg, suffix) { return; } var link = msg.content.indexOf("lbry://"); - console.log(link); if (link != -1) { var text = msg.content.replace("lbry://", "https://open.lbry.io/"); - console.log(text); var message = GetWordByPos(text, link); if (message === "https://open.lbry.io/") { return; From de003e670d469f47fa8c237b0c134567e0beef1b Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Tue, 21 Nov 2017 10:28:03 -0800 Subject: [PATCH 03/14] remove username from message (causing mobile issues) --- bot/modules/lbrylink.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot/modules/lbrylink.js b/bot/modules/lbrylink.js index 5d911a5..7975eff 100644 --- a/bot/modules/lbrylink.js +++ b/bot/modules/lbrylink.js @@ -52,8 +52,7 @@ exports.lbrylink = function(bot, msg, suffix) { } const embed = { description: - msg.author + - ", I see you tried to post a LBRY URL, here's a friendly hyperlink to share and for others to access your content with a single click: \n" + + "I see you tried to post a LBRY URL, here's a friendly hyperlink to share and for others to access your content with a single click: \n" + "[lbry://" + newname + "](" + From 60c249814785115361135ed15995853bb868f6bb Mon Sep 17 00:00:00 2001 From: Ralph Date: Wed, 22 Nov 2017 17:22:12 -0500 Subject: [PATCH 04/14] Added another catch I have added a parent if statement to check if someone runs the !addrole or !delrole command without a suffix. --- bot/modules/rolesetter.js | 89 ++++++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 38 deletions(-) diff --git a/bot/modules/rolesetter.js b/bot/modules/rolesetter.js index 706baeb..05ad91b 100644 --- a/bot/modules/rolesetter.js +++ b/bot/modules/rolesetter.js @@ -1,5 +1,6 @@ -var config = require("config"); -rolelist = config.get("rolelist"); +let config = require("config"); +let botconfig = config.get("bot"); +let rolelist = config.get("rolelist"); exports.commands = [ "addrole", // command that is in this file, every command needs it own export as shown below @@ -21,28 +22,34 @@ exports.addrole = { //console.log(rolelist); //console.log(rolelist.allowedroles); //console.log(config.get('allowedroles')); - if (rolelist.allowedroles.includes(suffix)) { - //console.log('Role is in allowed roles.'); - //console.log('Role to add: ' + newrole); - if (!msg.member.roles.find("name", suffix)) { - msg.member - .addRole(newrole) - .then( + if (suffix) { + if (rolelist.allowedroles.includes(suffix)) { + //console.log('Role is in allowed roles.'); + //console.log('Role to add: ' + newrole); + if (!msg.member.roles.find("name", suffix)) { + msg.member + .addRole(newrole) + .then( + msg.channel.send( + msg.member + " has been added to the " + suffix + " role!" + ) + ); + //console.log('Added role') + //msg.channel.send(msg.member + ' has been added to the ' + suffix + ' role!'); + } else { + msg.channel.send( + "It seems that you already have that role! Try removing it first with the " + botconfig.prefix + "delrole command!" + ); + } + } else { msg.channel.send( - msg.member + " has been added to the " + suffix + " role!" - ) - ); - //console.log('Added role') - //msg.channel.send(msg.member + ' has been added to the ' + suffix + ' role!'); - } else { - msg.channel.send( - "It seems that you already have that role! Try removing it first with the delrole command!" - ); - } + "That role isn't one you can add yourself too! Please run the " + botconfig.prefix + "roles command to find out which ones are allowed." + ); + } } else { - msg.channel.send( - "That role isn't one you can add yourself too! Please run the roles command to find out which ones are allowed." - ); + msg.channel.send ( + "Please specify a role. Type " + botconfig.prefix + "roles to see which you may add!" + ) } } }; @@ -56,24 +63,30 @@ exports.delrole = { //console.log('Delrole Event firing.'); //console.log(msg); //console.log('Printing Suffix! ' + suffix); - if (rolelist.allowedroles.includes(suffix)) { - if (msg.member.roles.find("name", suffix)) { - msg.member - .removeRole(oldrole) - .then( + if (suffix) { + if (rolelist.allowedroles.includes(suffix)) { + if (msg.member.roles.find("name", suffix)) { + msg.member + .removeRole(oldrole) + .then( + msg.channel.send( + msg.member + " has been removed from the " + suffix + " role!" + ) + ); + } else { + msg.channel.send( + "You don't seem to have that role! Try adding it first with the " + botconfig.prefix + "addrole command!" + ); + } + } else { msg.channel.send( - msg.member + " has been removed from the " + suffix + " role!" - ) - ); - } else { - msg.channel.send( - "You don't seem to have that role! Try adding it first with the addrole command!" - ); - } + "That role isn't one you can add yourself too! Please run the " + botconfig.prefix + "roles command to find out which ones are allowed." + ); + } } else { - msg.channel.send( - "That role isn't one you can add yourself too! Please run the roles command to find out which ones are allowed." - ); + msg.channel.send( + "Please specify a role. Type " + botconfig.prefix + "roles to see which you may add!" + ) } } }; From 4e8615e5e3bd642089bf6232dcf18ff950f535d9 Mon Sep 17 00:00:00 2001 From: Ralph Date: Wed, 22 Nov 2017 17:42:50 -0500 Subject: [PATCH 05/14] Changed Default roles to roles that won't matter Since these roles are above the Wunderbot role, it won't be able to add them to anyone. Also, if on some remote possibility the bot is able to add the role, it won't do much for the user, given the nature of the roles. --- config/default.json.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/default.json.example b/config/default.json.example index 873c6af..8cc9366 100644 --- a/config/default.json.example +++ b/config/default.json.example @@ -77,8 +77,8 @@ }, "rolelist": { "allowedroles": [ - "Role1", - "Role2" + "Reward Scammer", + "Reported Scammer" ] }, "claimbot": { From 373a41eccef4a27f2574e27776710e2d2c77a919 Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Mon, 11 Dec 2017 10:37:54 +0700 Subject: [PATCH 06/14] Update commands.js adding a new commands , shapeshift and youtube based on new FAQ, Please review after pushed this. thanks --- bot/modules/commands.js | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/bot/modules/commands.js b/bot/modules/commands.js index 82e9b68..02b3d0e 100644 --- a/bot/modules/commands.js +++ b/bot/modules/commands.js @@ -36,6 +36,8 @@ exports.commands = [ "email", "cli", "ipfstorrent" + "shapeshift" + "youtube" ]; exports.helpcommands = { @@ -621,3 +623,63 @@ exports.ipfstorrent = { }); } }; +exports.ipfstorrent = { + usage: " ", + description: "How is LBRY different from IPFS / BitTorrent?", + process: function(bot, msg) { + const embed = { + description: + "If you are interested in how LBRY is different from IPFS or BitTorrent, check out [lbry.io/faq/different-ipfs](https://lbry.io/faq/different-ipfs)", + color: 7976557, + author: { + name: "How is LBRY different from IPFS / BitTorrent?", + url: "https://lbry.io/faq/different-ipfs", + icon_url: "https://i.imgur.com/yWf5USu.png" + } + }; + msg.channel.send({ + embed + }); + } +}; + +exports.shapeshift = { + usage: " ", + description: "How can I convert my crypto into LBC?", + process: function(bot, msg) { + const embed = { + description: + "Please see this guide on how to convert my crypto into LBC, check out [lbry.io/faq/shapeshift](https://lbry.io/faq/shapeshift)", + color: 7976557, + author: { + name: "How can I convert my crypto into LBC?", + url: "https://lbry.io/faq/shapeshift", + icon_url: "https://i.imgur.com/yWf5USu.png" + } + }; + msg.channel.send({ + embed + }); + } +}; + +exports.Youtube = { + usage: " ", + description: "What is YouTube Sync?", + process: function(bot, msg) { + const embed = { + description: + "Please see this guide on how youtube sync works, check out [lbry.io/faq/youtube](https://lbry.io/faq/youtube)", + color: 7976557, + author: { + name: "What is YouTube Sync?", + url: "https://lbry.io/faq/youtube", + icon_url: "https://i.imgur.com/yWf5USu.png" + } + }; + msg.channel.send({ + embed + }); + } +}; + From 0952daf34b3f9d5586c5f761fa5d33486896d197 Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Tue, 12 Dec 2017 14:31:12 +0700 Subject: [PATCH 07/14] Update Commands.js Fix duplicates --- bot/modules/commands.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/bot/modules/commands.js b/bot/modules/commands.js index 02b3d0e..51026c8 100644 --- a/bot/modules/commands.js +++ b/bot/modules/commands.js @@ -623,24 +623,7 @@ exports.ipfstorrent = { }); } }; -exports.ipfstorrent = { - usage: " ", - description: "How is LBRY different from IPFS / BitTorrent?", - process: function(bot, msg) { - const embed = { - description: - "If you are interested in how LBRY is different from IPFS or BitTorrent, check out [lbry.io/faq/different-ipfs](https://lbry.io/faq/different-ipfs)", - color: 7976557, - author: { - name: "How is LBRY different from IPFS / BitTorrent?", - url: "https://lbry.io/faq/different-ipfs", - icon_url: "https://i.imgur.com/yWf5USu.png" - } - }; - msg.channel.send({ - embed - }); - } + }; exports.shapeshift = { From dfbe7fbfd74317bdcf49349058ddf1a72dfb2d94 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 12 Dec 2017 14:12:14 -0500 Subject: [PATCH 08/14] fixes + updates --- bot/modules/commands.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/bot/modules/commands.js b/bot/modules/commands.js index 51026c8..bb2597b 100644 --- a/bot/modules/commands.js +++ b/bot/modules/commands.js @@ -43,12 +43,12 @@ exports.commands = [ exports.helpcommands = { usage: " ", description: - "Displays Helpful Commands:\n!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent", + "Displays Helpful Commands:\n!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift", process: function(bot, msg) { msg.channel.send({ embed: { description: - "**!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent**", + "**!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift**", color: 7976557, author: { name: "List of Helpful LBRY Commands", @@ -276,7 +276,7 @@ exports.publisher = { process: function(bot, msg) { const embed = { description: - "Interested in publishing on LBRY? Have a look at [lbry.io/publish](https://lbry.io/publish)", + "Interested in publishing on LBRY? Have a look at [lbry.io/youtube](https://lbry.io/youtube)", color: 7976557, author: { name: "Want to Publish?", @@ -348,11 +348,11 @@ exports.rewards = { process: function(bot, msg) { const embed = { description: - "Rewards are given to legitimate users who are using the system (and in turn are testing things for us). In order to redeem rewards, you may need to verify your identity through a Credit Card or other manual methods.\n Please see [lbry.io/faq/identity-requirements](https://lbry.io/faq/identity-requirements)", + "[Rewards](https://lbry.io/faq/rewards) are given to legitimate users who are using the system (and in turn are testing things for us). In order to redeem rewards, you may need to verify your identity through a Credit Card or other manual methods.\n Please see [lbry.io/faq/identity-requirements](https://lbry.io/faq/identity-requirements)", color: 7976557, author: { name: "Rewards", - url: "https://lbry.io/faq/identity-requirements", + url: "https://lbry.io/faq/rewards", icon_url: "https://i.imgur.com/yWf5USu.png" } }; @@ -419,18 +419,18 @@ exports.verification = { var message = "If you would like to be verified go to <#" + verificationChannel + - ">. After joining, post that you would like verification and a mod will get to your request as soon as possible. We appreciate your patience. Only one account per person is allowed access to LBRY Rewards. This channel is not for YouTube sync, which is a separate process that requires a minimum number of views on Youtube (If you restarted LBRY and didn't get verified, you most likely don't qualify)."; + ">. After joining, post that you would like verification and a mod will get to your request as soon as possible. We appreciate your patience. Only one account per person is allowed access to LBRY Rewards. Check out our [YouTube Sync](https://lbry.io/faq/youtube) for assistance with the YouTube Sync rewards verification method."; msg.channel.send(message); } }; exports.logfile = { usage: " ", - description: "How to fine LBRY-app Log File?", + description: "How to find LBRY-app Log File?", process: function(bot, msg) { const embed = { description: - "You can find your log files by following the tutorial [HERE](https://lbry.io/faq/how-to-find-lbry-log-file)", + "You can find your log files by following the guide [HERE](https://lbry.io/faq/how-to-find-lbry-log-file)", color: 7976557, author: { name: "How to find my LogFile?", @@ -624,15 +624,13 @@ exports.ipfstorrent = { } }; -}; - exports.shapeshift = { usage: " ", description: "How can I convert my crypto into LBC?", process: function(bot, msg) { const embed = { description: - "Please see this guide on how to convert my crypto into LBC, check out [lbry.io/faq/shapeshift](https://lbry.io/faq/shapeshift)", + "Please see this guide on how to convert your crypto into LBC: [lbry.io/faq/shapeshift](https://lbry.io/faq/shapeshift)", color: 7976557, author: { name: "How can I convert my crypto into LBC?", From fcd90ef5a531d2c0879e3f042c9cb9b28989c90a Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Tue, 12 Dec 2017 12:20:53 -0800 Subject: [PATCH 09/14] fix release notes --- bot/modules/releasenotes.js | 153 ++++++++++++++++++++++++++++++------ 1 file changed, 129 insertions(+), 24 deletions(-) diff --git a/bot/modules/releasenotes.js b/bot/modules/releasenotes.js index f8078ba..52d4514 100644 --- a/bot/modules/releasenotes.js +++ b/bot/modules/releasenotes.js @@ -29,33 +29,138 @@ exports.releasenotes = { releasename = JSON.parse(body).name; releasedate = JSON.parse(body).published_at; releaseurl = JSON.parse(body).html_url; - message = { - embed: { - title: "*Download " + releasename + " here!*", - description: releasemessage, - url: releaseurl, - color: 7976557, - timestamp: releasedate, - author: { - name: "Lbry-app Release Notes for " + releasename, - icon_url: - "http://www.pngall.com/wp-content/uploads/2016/04/Github-PNG-Image.png" - }, - footer: { - icon_url: "https://i.imgur.com/yWf5USu.png", - text: "Lbry-app Updated " + if (releasemessage.length < 2000) { + message = { + embed: { + title: "*Download " + releasename + " here!*", + description: releasemessage, + url: releaseurl, + color: 7976557, + timestamp: releasedate, + author: { + name: "Lbry-app Release Notes for " + releasename, + icon_url: "http://www.pngall.com/wp-content/uploads/2016/04/Github-PNG-Image.png" + }, + footer: { + icon_url: "https://i.imgur.com/yWf5USu.png", + text: "Lbry-app Updated " + } } + }; + if (inPrivate(msg)) { + msg.channel.send(message); + return; + } + if (hasPerms(msg) && suffix === "post") { + bot.channels.get(ChannelID).send(message); + } else { + msg.channel.send(msg.author + " Release notes sent via DM"); + msg.author.send(message); } - }; - if (inPrivate(msg)) { - msg.channel.send(message); - return; - } - if (hasPerms(msg) && suffix === "post") { - bot.channels.get(ChannelID).send(message); } else { - msg.channel.send(msg.author + " Release notes sent via DM"); - msg.author.send(message); + message = releasemessage.trim().split("###").filter(function(n) { + return n !== ""; + }); + releasemessage1 = message[0]; + releasemessage2 = message[1]; + releasemessage3 = message[2]; + releasemessage4 = message[3]; + releasemessage5 = message[4]; + message1 = { + embed: { + title: "*Download " + releasename + " here!*", + description: releasemessage1, + url: releaseurl, + color: 7976557, + timestamp: releasedate, + author: { + name: "Lbry-app Release Notes for " + releasename, + icon_url: "http://www.pngall.com/wp-content/uploads/2016/04/Github-PNG-Image.png" + }, + footer: { + icon_url: "https://i.imgur.com/yWf5USu.png", + text: "Lbry-app Updated " + } + } + }; + message2 = { + embed: { + description: releasemessage2, + color: 7976557, + timestamp: releasedate, + author: { + icon_url: "http://www.pngall.com/wp-content/uploads/2016/04/Github-PNG-Image.png" + }, + footer: { + icon_url: "https://i.imgur.com/yWf5USu.png", + text: "Lbry-app Updated " + } + } + }; + message3 = { + embed: { + description: releasemessage3, + color: 7976557, + timestamp: releasedate, + author: { + icon_url: "http://www.pngall.com/wp-content/uploads/2016/04/Github-PNG-Image.png" + }, + footer: { + icon_url: "https://i.imgur.com/yWf5USu.png", + text: "Lbry-app Updated " + } + } + }; + message4 = { + embed: { + description: releasemessage4, + color: 7976557, + timestamp: releasedate, + author: { + icon_url: "http://www.pngall.com/wp-content/uploads/2016/04/Github-PNG-Image.png" + }, + footer: { + icon_url: "https://i.imgur.com/yWf5USu.png", + text: "Lbry-app Updated " + } + } + }; + message5 = { + embed: { + description: releasemessage5, + color: 7976557, + timestamp: releasedate, + author: { + icon_url: "http://www.pngall.com/wp-content/uploads/2016/04/Github-PNG-Image.png" + }, + footer: { + icon_url: "https://i.imgur.com/yWf5USu.png", + text: "Lbry-app Updated " + } + } + }; + if (inPrivate(msg)) { + msg.channel.send(message1); + msg.channel.send(message2); + msg.channel.send(message3); + msg.channel.send(message4); + msg.channel.send(message5); + return; + } + if (hasPerms(msg) && suffix === "post") { + bot.channels.get(ChannelID).send(message1); + bot.channels.get(ChannelID).send(message2); + bot.channels.get(ChannelID).send(message3); + bot.channels.get(ChannelID).send(message4); + bot.channels.get(ChannelID).send(message5); + } else { + msg.channel.send(msg.author + " Release notes sent via DM"); + msg.author.send(message1); + msg.author.send(message2); + msg.author.send(message3); + msg.author.send(message4); + msg.author.send(message5); + } } }); } From 81cbd119b2bc4c801ae850f0123fc9436235eb07 Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Wed, 13 Dec 2017 18:35:45 +0700 Subject: [PATCH 10/14] Add youtube commands --- bot/modules/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/modules/commands.js b/bot/modules/commands.js index bb2597b..c49e0db 100644 --- a/bot/modules/commands.js +++ b/bot/modules/commands.js @@ -43,12 +43,12 @@ exports.commands = [ exports.helpcommands = { usage: " ", description: - "Displays Helpful Commands:\n!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift", + "Displays Helpful Commands:\n!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube", process: function(bot, msg) { msg.channel.send({ embed: { description: - "**!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift**", + "**!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube**", color: 7976557, author: { name: "List of Helpful LBRY Commands", From 4f785a7396b924947e1a525b9e31d4fea572fc7e Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 13 Dec 2017 21:11:57 -0500 Subject: [PATCH 11/14] change publisher to youtuber, add transaction types +fix link +tx types faq --- bot/modules/commands.js | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/bot/modules/commands.js b/bot/modules/commands.js index c49e0db..7cc0666 100644 --- a/bot/modules/commands.js +++ b/bot/modules/commands.js @@ -43,12 +43,12 @@ exports.commands = [ exports.helpcommands = { usage: " ", description: - "Displays Helpful Commands:\n!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube", + "Displays Helpful Commands:\n!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube, !transactions", process: function(bot, msg) { msg.channel.send({ embed: { description: - "**!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube**", + "**!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube, !transactions**", color: 7976557, author: { name: "List of Helpful LBRY Commands", @@ -270,17 +270,17 @@ exports.pricestance = { } }; -exports.publisher = { +exports.youtuber = { usage: " ", - description: "Interested in publishing on LBRY?", + description: "Are you a Youtuber curious about LBRY?", process: function(bot, msg) { const embed = { description: - "Interested in publishing on LBRY? Have a look at [lbry.io/youtube](https://lbry.io/youtube)", + "Are you a Youtuber curious about LBRY? Have a look at [lbry.io/youtube](https://lbry.io/youtube)", color: 7976557, author: { - name: "Want to Publish?", - url: "https://lbry.io/publish", + name: "Are you a Youtuber?", + url: "https://lbry.io/youtube", icon_url: "https://i.imgur.com/yWf5USu.png" } }; @@ -644,7 +644,7 @@ exports.shapeshift = { } }; -exports.Youtube = { +exports.youtube = { usage: " ", description: "What is YouTube Sync?", process: function(bot, msg) { @@ -663,4 +663,23 @@ exports.Youtube = { }); } }; +exports.transactions = { + usage: " ", + description: "What types of LBRY transactions are there?", + process: function(bot, msg) { + const embed = { + description: + "Please see this guide on [transaction types](https://lbry.io/faq/transaction-types)", + color: 7976557, + author: { + name: "What types of LBRY transactions are there?", + url: "https://lbry.io/faq/transaction-types", + icon_url: "https://i.imgur.com/yWf5USu.png" + } + }; + msg.channel.send({ + embed + }); + } +}; From 938f92e71db34d73d530962d934acdd7b44bce3b Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Thu, 14 Dec 2017 09:49:59 +0700 Subject: [PATCH 12/14] Edit publisher and fixes to youtuber --- bot/modules/commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/modules/commands.js b/bot/modules/commands.js index 7cc0666..64baf90 100644 --- a/bot/modules/commands.js +++ b/bot/modules/commands.js @@ -17,7 +17,7 @@ exports.commands = [ "name", "mining", "pricestance", - "publisher", + "Youtuber", "publish", "random", "referrals", @@ -43,12 +43,12 @@ exports.commands = [ exports.helpcommands = { usage: " ", description: - "Displays Helpful Commands:\n!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube, !transactions", + "Displays Helpful Commands:\n!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !youtuber, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube, !transactions", process: function(bot, msg) { msg.channel.send({ embed: { description: - "**!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !publisher, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube, !transactions**", + "**!what, !beta, !begging, !github, !appdownload, !daemondownload, !directories, !faq, !name, !mining, !pricestance, !youtuber, !publish, !random, !referrals, !rewards, !rewardsvsreferrals, !cc, !verify, !verification, !logfile, !backup, !startup, !streamingissues, !ports, !migrate, !tipping, !email, !cli, !ipfstorrent, !shapeshift, !youtube, !transactions**", color: 7976557, author: { name: "List of Helpful LBRY Commands", From 6e8dd9d10f05292b773f636868caf56f6d1e7935 Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Thu, 14 Dec 2017 09:56:09 +0700 Subject: [PATCH 13/14] Add tx to display helpful commands --- bot/modules/commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/modules/commands.js b/bot/modules/commands.js index 64baf90..f81b377 100644 --- a/bot/modules/commands.js +++ b/bot/modules/commands.js @@ -38,6 +38,7 @@ exports.commands = [ "ipfstorrent" "shapeshift" "youtube" + "Transactions" ]; exports.helpcommands = { From 9f2728558f03073d77d87cc4668ca1252c18f4c8 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Thu, 14 Dec 2017 09:44:03 -0500 Subject: [PATCH 14/14] lowercase fix capitalization --- bot/modules/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/modules/commands.js b/bot/modules/commands.js index f81b377..bbfd58f 100644 --- a/bot/modules/commands.js +++ b/bot/modules/commands.js @@ -17,7 +17,7 @@ exports.commands = [ "name", "mining", "pricestance", - "Youtuber", + "youtuber", "publish", "random", "referrals", @@ -38,7 +38,7 @@ exports.commands = [ "ipfstorrent" "shapeshift" "youtube" - "Transactions" + "transactions" ]; exports.helpcommands = {