copy changes and env check fix
This commit is contained in:
parent
6a88c450ac
commit
0e56f29eaf
3 changed files with 15 additions and 9 deletions
|
@ -30,13 +30,13 @@ String.prototype.escape = function() {
|
||||||
|
|
||||||
let client;
|
let client;
|
||||||
|
|
||||||
if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") {
|
if (process.env.GITHUB_OAUTH_TOKEN) {
|
||||||
octokit = new Octokit({
|
octokit = new Octokit({
|
||||||
auth: `token ${process.env.GITHUB_OAUTH_TOKEN}`
|
auth: `token ${process.env.GITHUB_OAUTH_TOKEN}`
|
||||||
});
|
});
|
||||||
} else process.stdout.write(`${color.red("[missing]")} GitHub token`);
|
} else process.stdout.write(`${color.red("[missing]")} GitHub token`);
|
||||||
|
|
||||||
if (typeof process.env.REDISCLOUD_URL !== "undefined") {
|
if (process.env.REDISCLOUD_URL) {
|
||||||
client = redis.createClient(process.env.REDISCLOUD_URL);
|
client = redis.createClient(process.env.REDISCLOUD_URL);
|
||||||
|
|
||||||
client.on("error", redisError => {
|
client.on("error", redisError => {
|
||||||
|
@ -258,7 +258,7 @@ function generateEvent(event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateGitHubFeed(displayGitHubFeed) {
|
function generateGitHubFeed(displayGitHubFeed) {
|
||||||
if (typeof process.env.REDISCLOUD_URL !== "undefined") {
|
if (process.env.REDISCLOUD_URL) {
|
||||||
client.zrevrange("events", 0, 9, (err, reply) => {
|
client.zrevrange("events", 0, 9, (err, reply) => {
|
||||||
if (err) return; // TODO: Render a div with nice error message
|
if (err) return; // TODO: Render a div with nice error message
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
padding-left: 0.1rem;
|
padding-left: 0.1rem;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
list-style-type: lower-roman;
|
list-style-type: decimal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,19 @@
|
||||||
title: Developer Program
|
title: Developer Program
|
||||||
---
|
---
|
||||||
|
|
||||||
When developing for LBRY, having LBC (LBRY credits) makes it easier to develop applications and interface with our APIs.
|
LBRY offers a complimentary 100 LBC to qualified engineers to facilitate exploration, development, and testing.
|
||||||
|
|
||||||
To qualify for free LBC you must:
|
To qualify you must:
|
||||||
|
|
||||||
- have a GitHub account, and
|
- Have a GitHub account prior to January 1st, 2018.
|
||||||
- have a public PR (pull request) in the past year
|
- Have made a public pull request within the past year.
|
||||||
|
|
||||||
<DeveloperProgram/>
|
<DeveloperProgram/>
|
||||||
|
|
||||||
If you have not downloaded our SDK yet, [you should]() and generate a wallet address so we know where to send your LBC!
|
(below here should be hidden until click)
|
||||||
|
|
||||||
|
To receive your LBC, you'll need a wallet address. While graphical wallets are available, the recommended path for engineers is to:
|
||||||
|
|
||||||
|
1. Download [the LBRY SDK](https://github/lbryio/lbry).
|
||||||
|
1. Launch the command-line utility.
|
||||||
|
1. Run the [`address_unused`](https://lbry.tech/api/sdk#address_unused) command.
|
||||||
|
|
Loading…
Add table
Reference in a new issue