Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Melroy van den Berg
Crypto Bot Father
Commits
c70de595
Verified
Commit
c70de595
authored
Nov 07, 2022
by
Melroy van den Berg
Browse files
Fix spelling
parent
392583fd
Pipeline
#4956
passed with stage
in 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/index.js
View file @
c70de595
...
...
@@ -22,7 +22,7 @@ const routes = require('./routes')
global
.
ErrorState
=
false
if
(
!
TELEGRAM_TOKEN
)
{
console
.
error
(
'
\
x1b[31mERROR: Provide your Telegram token, by setting the TELEGRAM_TOKEN enviroment variable first! See README.md.
\n
Exit.
\
x1b[0m
'
)
console
.
error
(
'
\
x1b[31mERROR: Provide your Telegram token, by setting the TELEGRAM_TOKEN enviro
n
ment variable first! See README.md.
\n
Exit.
\
x1b[0m
'
)
process
.
exit
(
1
)
}
...
...
src/telegram.js
View file @
c70de595
...
...
@@ -168,7 +168,7 @@ More info:
})
this
.
bot
.
onText
(
/^
[/
|!
]
bchaddress
\S
*$/
,
msg
=>
{
this
.
sendMessage
(
msg
.
chat
.
id
,
'
Error: Provide atleast the Bitcoin address as argument: /bchaddress <bitcoincash:address>
'
)
this
.
sendMessage
(
msg
.
chat
.
id
,
'
Error: Provide at
least the Bitcoin address as argument: /bchaddress <bitcoincash:address>
'
)
})
// address command (/bchaddress <address>)
...
...
@@ -180,7 +180,7 @@ More info:
})
this
.
bot
.
onText
(
/^
[/
|!
]
bchtransaction
\S
*$/
,
msg
=>
{
this
.
sendMessage
(
msg
.
chat
.
id
,
'
Error: Provide atleast the Bitcoin transaction hash as argument: /bchtransaction <hash>
'
)
this
.
sendMessage
(
msg
.
chat
.
id
,
'
Error: Provide at
least the Bitcoin transaction hash as argument: /bchtransaction <hash>
'
)
})
this
.
bot
.
onText
(
/
[/
|!
]
bchtransaction@
?\S
*
(
.+
)
/
,
(
msg
,
match
)
=>
{
...
...
@@ -201,7 +201,7 @@ More info:
})
this
.
bot
.
onText
(
/^
[/
|!
]
bchblock
\S
*$/
,
msg
=>
{
this
.
sendMessage
(
msg
.
chat
.
id
,
'
Error: Provide atleast the Bitcoin block hash as argument: /bchblock <hash>
'
)
this
.
sendMessage
(
msg
.
chat
.
id
,
'
Error: Provide at
least the Bitcoin block hash as argument: /bchblock <hash>
'
)
})
// Bitcoin block command (/bchblock <hash>)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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