Commit 181a5e43 authored by Cool Fire's avatar Cool Fire

Refresh info/links

parent 443b886c
Pipeline #1395 passed with stages
in 4 minutes and 51 seconds
...@@ -83,11 +83,25 @@ class Shells ...@@ -83,11 +83,25 @@ class Shells
when /^git/i when /^git/i
info = [ "https://git.insomnia247.nl", info = [ "https://git.insomnia247.nl",
"No shell account is required to sign up here." ] "No shell account is required to sign up here." ]
when /^ports?/i when /^port/i
ports( nick, user, host, from, msg, arguments, con ) info = [
return "Our shells have ports 5000 to 5500 open for incoming connections.",
"The port command can be used from your shell to determime which ports are available to you.",
"Use port -a to see which ports are still available.",
"Use port -s portnumber to see if a specific port you would like to use is still available.",
"For more information, go here: http://wiki.insomnia247.nl/wiki/Shells_ports"
]
when /^website/i
info = [
"Our shells allow you to host a small website on your shell.",
"You need to put your websites files in the public_html folder on your shell.",
"You can now view your website at yourname.insomnia247.nl.",
"For more information, go here: http://wiki.insomnia247.nl/wiki/Shells_websites"
]
when /^znc/i
info = [ "You can find a guide to setting up ZNC for your shell here: http://wiki.insomnia247.nl/wiki/Shells_ZNC" ]
else else
info = [ "Available options: Main, FAQ, Rules, Shell, Invite, Good, Bad, Learning, suwww, Heartbeat, Git, Ports" ] info = [ "Available options: Main, FAQ, Rules, Shell, Invite, Good, Bad, Learning, suwww, Heartbeat, Git, Ports, Websites, ZNC" ]
end end
printhelp( from, con, info ) printhelp( from, con, info )
end end
...@@ -97,59 +111,23 @@ class Shells ...@@ -97,59 +111,23 @@ class Shells
link( nick, user, host, from, msg, arguments, con ) link( nick, user, host, from, msg, arguments, con )
end end
# Show information about open ports # Aliasses for link subjects
def port( nick, user, host, from, msg, arguments, con ) def port( nick, user, host, from, msg, _arguments, con )
ports( nick, user, host, from, msg, arguments, con ) link( nick, user, host, from, msg, 'port', con )
end end
def ports( _nick, _user, _host, from, _msg, _arguments, con ) def ports( nick, user, host, from, msg, _arguments, con )
info = [ link( nick, user, host, from, msg, 'port', con )
"Our shells have ports 5000 to 5500 open for incoming connections.",
"The port command can be used from your shell to determime which ports are available to you.",
"Use port -a to see which ports are still available.",
"Use port -s portnumber to see if a specific port you would like to use is still available.",
"For more information, go here: http://wiki.insomnia247.nl/wiki/Shells_ports"
]
printhelp( from, con, info )
end end
def website( nick, user, host, from, msg, _arguments, con )
# Show information about users websites. link( nick, user, host, from, msg, 'website', con )
def website( nick, user, host, from, msg, arguments, con )
websites( nick, user, host, from, msg, arguments, con )
end end
def websites( _nick, _user, _host, from, _msg, _arguments, con ) def websites( nick, user, host, from, msg, _arguments, con )
info = [ link( nick, user, host, from, msg, 'website', con )
"Our shells allow you to host a small website on your shell.",
"You need to put your websites files in the public_html folder on your shell.",
"You can now view your website at yourname.insomnia247.nl.",
"For more information, go here: http://wiki.insomnia247.nl/wiki/Shells_websites"
]
printhelp( from, con, info )
end
# Show information about backups.
def backup( nick, user, host, from, msg, arguments, con )
backups( nick, user, host, from, msg, arguments, con )
end end
def backups( _nick, _user, _host, from, _msg, _arguments, con ) def znc( nick, user, host, from, msg, _arguments, con )
info = [ link( nick, user, host, from, msg, 'znc', con )
"You can use the backup command on your shell to backup or restore files from or to our off-site backup.",
"Full backups of the home directories are made every Monday, Wednesday and Friday at 5:40am local time.",
"You need to give your full path to the backup application, so if you want to restore a file called 'code.c' in your home directory:",
"backup --restore /home/username/code.c",
"Use 'backup --help' to get more information on usage.",
"For more info, go here: http://wiki.insomnia247.nl/wiki/Shells_ports"
]
printhelp( from, con, info )
end end
# Show information about ZNC.
def znc( _nick, _user, _host, from, _msg, _arguments, con )
info = [
"You can find a guide to setting up ZNC for your shell here: http://wiki.insomnia247.nl/wiki/Shells_ZNC"
]
printhelp( from, con, info )
end
# Function to send help about this plugin (Can also be called by the help plugin.) # Function to send help about this plugin (Can also be called by the help plugin.)
def help( nick, _user, _host, _from, _msg, _arguments, con ) def help( nick, _user, _host, _from, _msg, _arguments, con )
help = [ help = [
...@@ -157,7 +135,6 @@ class Shells ...@@ -157,7 +135,6 @@ class Shells
" shells link [topic] - Show link to wiki.", " shells link [topic] - Show link to wiki.",
" shells ports - Show information about open ports.", " shells ports - Show information about open ports.",
" shells websites - Show information about users websites.", " shells websites - Show information about users websites.",
" shells backups - Show information about backups.",
" shells znc - Show information about ZNC.", " shells znc - Show information about ZNC.",
" shells uptime - Show uptime for shell hosts.", " shells uptime - Show uptime for shell hosts.",
" shells users - Show user count for shell hosts.", " shells users - Show user count for shell hosts.",
...@@ -202,10 +179,6 @@ class Shells ...@@ -202,10 +179,6 @@ class Shells
getstat( from, "kernel" ) getstat( from, "kernel" )
end end
def twofactor( _nick, _user, _host, from, _msg, _arguments, _con )
getstat( from, "twofactor" )
end
# Command to check if there are unvoiced users that should have voice # Command to check if there are unvoiced users that should have voice
def voice( _nick, _user, _host, _from, _msg, _arguments, _con ) def voice( _nick, _user, _host, _from, _msg, _arguments, _con )
@irc.raw("NAMES #{@chan}") @irc.raw("NAMES #{@chan}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment