FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Crackbot/consolein.lua at master · astravexton/Crackbot · GitHub
astravexton
Crackbot
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Crackbot
/
consolein.lua
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (17 loc) · 472 Bytes
Breadcrumbs
Crackbot
/
consolein.lua
Copy path
File metadata and controls
17 lines (17 loc) · 472 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if
IRC_RUNNING
then
error
(
"
Can't load that from here
"
)
end
print
(
"
Line input to IRC bot! ./chan to change who gets message
"
)
local
socket
=
require
"
socket
"
local
s
=
socket
.
bind
(
"
localhost
"
,
1337
)
s
:
settimeout
(
30
)
local
client
=
s
:
accept
()
if
not
client
then
print
(
"
Timeout
"
)
return
end
print
(
"
Connected!
"
)
s
:
settimeout
(
0
)
client
:
settimeout
(
0
)
while
true
do
local
line
=
io.read
(
"
*l
"
)
if
line
then
local
r
,
e
=
client
:
send
(
line
..
"
\n
"
)
if
not
r
then
break
end
end
end
Back
|
FazBrowse Home
|
New Git URL