Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
wolfxmc-money
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
wolfxmc-money
Commits
5dc0939a
Commit
5dc0939a
authored
Jan 07, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker things
parent
c6c7d654
Pipeline
#1997
passed with stages
in 6 minutes and 35 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
10 deletions
+6
-10
Dockerfile
Dockerfile
+2
-1
package.json
package.json
+1
-0
run.sh
run.sh
+2
-0
run.ts
run.ts
+1
-9
No files found.
Dockerfile
View file @
5dc0939a
...
...
@@ -5,5 +5,6 @@ COPY ./package*.json ./
RUN
npm ci
COPY
. ./
RUN
npm run build
ENV
USERNAME Irrlicht
CMD
["
npm", "run", "start
"]
CMD
["
./run.sh
"]
package.json
View file @
5dc0939a
...
...
@@ -4,6 +4,7 @@
"description"
:
"Offers money to a specific account"
,
"main"
:
"build/run.js"
,
"scripts"
:
{
"build"
:
"tsc"
,
"test"
:
"node build/run.js Irrlicht"
},
"repository"
:
{
...
...
run.sh
0 → 100755
View file @
5dc0939a
#!/bin/bash
node build/run.js
"
$USERNAME
"
run.ts
View file @
5dc0939a
...
...
@@ -11,14 +11,6 @@ function randomString(len: number) {
return
crypto
.
randomBytes
(
Math
.
ceil
(
len
/
2
)).
toString
(
'
hex
'
).
slice
(
0
,
len
);
};
async
function
waitBotLogin
(
bot
:
Bot
)
{
return
new
Promise
(
done
=>
{
bot
.
once
(
"
spawn
"
,
()
=>
{
done
();
})
})
}
function
getChatMessageTexts
(
rawMessage
:
ChatMessage
):
string
[]
{
const
messageObjects
=
(
rawMessage
.
json
as
any
).
extra
as
any
[];
if
(
!
messageObjects
)
{
...
...
@@ -49,7 +41,7 @@ async function runOnce(targetUser: string) {
console
.
log
(
`Creating bot
${
username
}
${
password
}
.`
);
const
bot
=
createBot
({
username
,
host
:
'
43.248.187.76
'
,
host
:
'
wolfxmc.org
'
,
port
:
25565
});
bot
.
on
(
'
message
'
,
(
message
)
=>
{
...
...
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