Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
LBRY Bot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Melroy van den Berg
LBRY Bot
Commits
88231d57
Commit
88231d57
authored
Sep 15, 2019
by
Melroy van den Berg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move to src
parent
1cea696a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
package.json
package.json
+4
-4
src/index.js
src/index.js
+3
-3
src/routes/about.js
src/routes/about.js
+0
-0
src/routes/index.js
src/routes/index.js
+0
-0
src/routes/telegram.js
src/routes/telegram.js
+0
-0
No files found.
package.json
View file @
88231d57
...
...
@@ -2,15 +2,15 @@
"name"
:
"lbry-bot"
,
"version"
:
"0.1.0"
,
"description"
:
"A Botfather chat bot for LBRY. The one that rule them all!"
,
"main"
:
"
app
.js"
,
"main"
:
"
src/index
.js"
,
"directories"
:
{
"doc"
:
"docs"
},
"scripts"
:
{
"start"
:
"export $(cat tokens.env | xargs) && node
app.js
"
,
"start"
:
"export $(cat tokens.env | xargs) && node
.
"
,
"test"
:
"mocha --reporter spec"
,
"lint"
:
"eslint
.
--ext .js"
,
"fix"
:
"eslint
.
--ext .js --fix"
"lint"
:
"eslint
src
--ext .js"
,
"fix"
:
"eslint
src
--ext .js --fix"
},
"repository"
:
{
"type"
:
"git"
,
...
...
app
.js
→
src/index
.js
View file @
88231d57
...
...
@@ -19,9 +19,9 @@ global.TelegramSecretHash = crypto.randomBytes(20).toString('hex')
const
TelegramBot
=
require
(
'
node-telegram-bot-api
'
)
const
express
=
require
(
'
express
'
)
const
bodyParser
=
require
(
'
body-parser
'
)
const
LBRY
=
require
(
'
./
src/
lbry
'
)
const
Exchange
=
require
(
'
./
src/
exchange
'
)
const
Telegram
=
require
(
'
./
src/
telegram
'
)
const
LBRY
=
require
(
'
./lbry
'
)
const
Exchange
=
require
(
'
./exchange
'
)
const
Telegram
=
require
(
'
./telegram
'
)
const
routes
=
require
(
'
./routes
'
)
if
(
!
TELEGRAM_TOKEN
)
{
...
...
routes/about.js
→
src/
routes/about.js
View file @
88231d57
File moved
routes/index.js
→
src/
routes/index.js
View file @
88231d57
File moved
routes/telegram.js
→
src/
routes/telegram.js
View file @
88231d57
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment