Skip to content

inxipy.tcl — fetches: sys info via inxi, storage info via pydf, online connection speedtest.net results via speedtest-cli, cool sys info via ufetch: a Tiny system info tool for Unix-like operating systems.

Notifications You must be signed in to change notification settings

San3-Cod3/inxipy.tcl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

$\Large\color{black}\fbox{\color{paddingfix}\color{brown}{\color{silver} { inxi\color{silver}{py}\color{silver}.tcl }}}{\color{silver}\color{silver}{}\color{silver}\textcolor{silver}{}{\ \color{darkgrey}— \ \color{darkgrey}fetches:}}$

$\Large\textcolor{darkgrey}{sys—info...via: \color[RGB]{85,85,212}\fbox{\color{yellow}{\color{yellow}\color{midnightblue}{\color{royalblue}\ inxi }‎}‎}{\color{yellow}{} {}}\color{olive},\color{darkgrey} \ storage—info...via: \Large\color{orange}\fbox{\color{yellow}{\color{yellow}\color{darkgrey}{\color{yellow}\ \color[RGB]{255,211,67}py\color[RGB]{55,118,171}df }‎}‎}{\color{yellow}{}}\color{olive},}$

$\Large\textcolor{darkgrey}{}{ \ \color{darkgrey}online \ \ connection\ \ \color[RGB]{255,127,255}\fbox{\color{cyan}\color{blue}{\color{blue}{\color{cyan}\ speedtest.net }}}\color{darkgrey}{}\ \ results... via: \color{aquamarine}\fbox{\color{cyan}\color{blue}{\color{cyan} speedtest-cli }}\color{olive},}$

$\Large\textcolor{darkgrey}{}{ \ \color{darkgrey}cool \ \ sys—info... via: \color{maroon}\fbox{\color{paddingfix}{\color{paddingfix}\color{black}{\color{crimson}\ ufetch }‎}‎}{\color{paddingfix}{} }‎\color{darkgrey}: a\text{\color{darkgrey} ‘‘Tiny system info’’}\ tool—}$

$$\Large\textcolor{darkgrey}—{\text{\color{darkgrey}‘‘for Unix-like operating systems’’}{\color{darkgrey}—}‎}$$

$$\Large\text{\color[RGB]{102,255,102}\Large Sane@Linux}\small\text{:}\Large\text{\color[RGB]{85,85,212}{\LARGE ∿}}\Large\text{\color[RGB]{85,85,212}{/GH/inxipy.tcl }}\small\text{\color[RGB]{85,85,212}{ \$}} \small\text{ make \ sys\_info.so \ sexy} \small\text{\color{lime}{\color{lime}▍}}$$

$$\Large\color[RGB]{85,85,212}\fbox{\color{paddingfix}\color{midnightblue}{\color{royalblue}\Large { inxi\color{yellow}{py}\color{khaki}.tcl }}}{\color{royalblue}\color{yellow}{}\color{khaki}\textcolor{silver}{} }$$

@@ Coloured read through for convenience. @@
! No need to copy this fenced code block.
- Copy pasteable TCL code further down below.
+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
+########Q:Don't ave noexpire set on Nick? Np, try out CAR########
+#######CAR stands for Cycle And Renew. Q:Tired of worrying#######
+######about dropping? CAR runs in BG renewing nicks AUTO4U!######
+#####         URL: https://github.com/San3-Cod3/CAR         #####
+####    <Sane> Time registered: Jul 06 07:14:54 2011 EDT!    ####
+###        CAR -- driving your nicks, into the future!        ###
+##                                                             ##
+#                          inxipy.tcl!                          #
+##                                                             ##
+###                       VERSION 0.0.1                       ###
+####                                                         ####
+##### Please try out my shell script to auto-login to your: #####
+###### eggdrop bot's spawn telnet version of The Party Line #####
+####### Send Credentials Auto-Magically: HstIP Port UsrPW #######
+########        https://github.com/San3-Cod3/SCA-M        #######
+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
+########                                                 ########
+#######            Created by: Sane from Rizon            #######
+######                                                     ######
+#####  sudo apt-get install -y inxi pydf speedtest-cli git  #####
+####                                                         ####
+### cd /home/YOU/                                             ###
+### git clone https://gitlab.com/jschx/ufetch.git             ###
+### cd /home/YOU/ufetch                                       ###
+### sudo cp / mv your ufetch-*distro file to /usr/bin/        ###
+### BUT! Make sure it's executable first: chmod +x ufetch-*   ###
+### If your distro is missing; use the generic Linux Tux ver. ###
+###                                                           ###
+### 'ufetch-raspbian' is my own selected ufetch distro file - ###
+### choose your own & place it in /usr/bin/ with prepend sudo ###
+### Ctrl + F(ind) / W: ufetch-raspbian -- replace w/ your own ###
+###                                                           ###
+### Might wanna consider editing said: 'ufetch-*distro' file- ###
+### - using your own personal tastes and preferences, e.g.    ###
+### reduce overall lines like condensing info together -      ###
+### - grouped onto the same line, like for instance, SHELL+UI ###
+### or, remove default blank lines; maybe even play w/ colour ###
+###                                                           ###
+###                                                           ###
+### For bot owner/master use only, add an m flag to-          ###
+### -both sides of pipe in the script below like so: m|m      ###
+###                                                           ###
+### Note: by default, the script will only work for:          ###
+### channel operators; you can change this by editing:        ###
+### "isop" to either: 'ishalfop' or 'isvoice' -               ###
+### I don't recommend lower than voice, but if you need to -  ###
+### just remove appropriate lines entirely from the script    ###
+###                                                           ###
+###                                                           ###
+###              irssi exec test examples below:              ###
+###                                                           ###
+###irssi can be exec'd to your open session w/o public output-###
+###-removing -out flag; exec'd line isn't visible; only to you###
+###                                                           ###
+### /exec -out inxi --color 11 --machine | tr "\n" " "        ###
+### /exec -out pydf ; inxi --cpu --info --system              ###
+###                                                           ###
+### /exec -out inxi -G --display ; inxi --network             ###
+###                                                           ###
+### /exec -out speedtest --simple | paste -sd% | sed "s/%/ || /g"
+###                                                           ###
+### /exec TERM=linux ufetch-*distro                           ###
+### /exec -out TERM=linux ufetch-*distro                      ###
+### /exec TERM=dumb ufetch--*distro                           ###
+### /exec -out TERM=dumb ufetch-*distro                       ###
+###                                                           ###
+###                                                           ###
+### If you happen to have an exec issue about an error, or -  ###
+### have an error display along with your line/s you exec'd,  ###
+### then try this optional flag: -ignorestderr                ###
+### - use just after the word exec; BUT this only applies to: ###
+### TCL exec from this eggdrop script & not irssi's exec      ###
+###                                                           ###
+###                                                           ###
+#### Public channel bind cmds: !inxipy, !inximore, !st, !uf, ####
+##### !ufd,                                                 #####
+######@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@######
+##### Pro-tips: I recommend monospace font for best results #####
+####TERM * linux is colour output, should any exist in script####
+###TERM * dumb is colourless output, regardless of it existing###
+##The environment that /exec will operate in is not the same as##
+#  you use; it's cleaned for security reasons I.E there is no-  #
+#        TERM set by default - it needs to be specified.        #
+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
+#                                                               #
+##########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##########
+# script #                                             # below! #
+##########                                             ##########

tclcgh$\Large\color{midnightblue}\fbox{\color{khaki} \color{royalblue}inxi\color{yellow}{py}\color{khaki}.tcl }{ \color{royalblue}\color{yellow}{}\color{khaki} }$

#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
########Q:Don't ave noexpire set on Nick? Np, try out CAR########
#######CAR stands for Cycle And Renew. Q:Tired of worrying#######
######about dropping? CAR runs in BG renewing nicks AUTO4U!######
#####         URL: https://github.com/San3-Cod3/CAR         #####
####    <Sane> Time registered: Jul 06 07:14:54 2011 EDT!    ####
###        CAR -- driving your nicks, into the future!        ###
##                                                             ##
#                          inxipy.tcl!                          #
##                                                             ##
###                       VERSION 0.0.1                       ###
####                                                         ####
##### Please try out my shell script to auto-login to your: #####
###### eggdrop bot's spawn telnet version of The Party Line #####
####### Send Credentials Auto-Magically: HstIP Port UsrPW #######
########        https://github.com/San3-Cod3/SCA-M        #######
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
########                                                 ########
#######            Created by: Sane from Rizon            #######
######                                                     ######
#####  sudo apt-get install -y inxi pydf speedtest-cli git  #####
####                                                         ####
### cd /home/YOU/                                             ###
### git clone https://gitlab.com/jschx/ufetch.git             ###
### cd /home/YOU/ufetch                                       ###
### sudo cp / mv your ufetch-*distro file to /usr/bin/        ###
### BUT! Make sure it's executable first: chmod +x ufetch-*   ###
### If your distro is missing; use the generic Linux Tux ver. ###
###                                                           ###
### 'ufetch-raspbian' is my own selected ufetch distro file - ###
### choose your own & place it in /usr/bin/ with prepend sudo ###
### Ctrl + F(ind) / W: ufetch-raspbian -- replace w/ your own ###
###                                                           ###
### Might wanna consider editing said: 'ufetch-*distro' file- ###
### - using your own personal tastes and preferences, e.g.    ###
### reduce overall lines like condensing info together -      ###
### - grouped onto the same line, like for instance, SHELL+UI ###
### or, remove default blank lines; maybe even play w/ colour ###
###                                                           ###
###                                                           ###
### For bot owner/master use only, add an m flag to-          ###
### -both sides of pipe in the script below like so: m|m      ###
###                                                           ###
### Note: by default, the script will only work for:          ###
### channel operators; you can change this by editing:        ###
### "isop" to either: 'ishalfop' or 'isvoice' -               ###
### I don't recommend lower than voice, but if you need to -  ###
### just remove appropriate lines entirely from the script    ###
###                                                           ###
###                                                           ###
###              irssi exec test examples below:              ###
###                                                           ###
###irssi can be exec'd to your open session w/o public output-###
###-removing -out flag; exec'd line isn't visible; only to you###
###                                                           ###
### /exec -out inxi --color 11 --machine | tr "\n" " "        ###
### /exec -out pydf ; inxi --cpu --info --system              ###
###                                                           ###
### /exec -out inxi -G --display ; inxi --network             ###
###                                                           ###
### /exec -out speedtest --simple | paste -sd% | sed "s/%/ || /g"
###                                                           ###
### /exec TERM=linux ufetch-*distro                           ###
### /exec -out TERM=linux ufetch-*distro                      ###
### /exec TERM=dumb ufetch--*distro                           ###
### /exec -out TERM=dumb ufetch-*distro                       ###
###                                                           ###
###                                                           ###
### If you happen to have an exec issue about an error, or -  ###
### have an error display along with your line/s you exec'd,  ###
### then try this optional flag: -ignorestderr                ###
### - use just after the word exec; BUT this only applies to: ###
### TCL exec from this eggdrop script & not irssi's exec      ###
###                                                           ###
###                                                           ###
#### Public channel bind cmds: !inxipy, !inximore, !st, !uf, ####
##### !ufd,                                                 #####
######@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@######
##### Pro-tips: I recommend monospace font for best results #####
####TERM * linux is colour output, should any exist in script####
###TERM * dumb is colourless output, regardless of it existing###
##The environment that /exec will operate in is not the same as##
#  you use; it's cleaned for security reasons I.E there is no-  #
#        TERM set by default - it needs to be specified.        #
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#                                                               #
##########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##########
# script #                                             # below! #
##########                                             ##########

bind pub m|m !inxipy do_inxipy

proc do_inxipy {nick uhost hand chan text} {
        if {![isop $nick $chan]} {
                putnow "NOTICE $nick :$nick, my guy; you aren't OP'd on $chan, sorry no can do..."
                return 0
        } else {
   }
   set my_machine [exec inxi --color 11 --machine | tr "\n" " "]
   set my_pydf [exec pydf]
   set my_inxi [exec inxi --cpu --info --system]
   foreach thing [split "$my_machine\n$my_pydf\n$my_inxi" \r\n] {
   #foreach line [split "$my_pydf\n$my_inxi" \n]      
      putnow "PRIVMSG $chan :$thing"
   }
}
bind pub m|m !inximore do_inximore

proc do_inximore {nick uhost hand chan text} {
        if {![isop $nick $chan]} {
                 putnow "NOTICE $nick :$nick, my guy; you aren't OP'd on $chan, sorry no can do..."
                 return 0
         } else {
   }
   set my_inximore_GraphDis [exec inxi -G --display]
   set my_inximore_Network [exec inxi --network]
   foreach line [split "$my_inximore_GraphDis\n$my_inximore_Network" \n] {
      putnow "PRIVMSG $chan :$line"
   }
}
bind pub m|m !st do_st

proc do_st {nick uhost hand chan text} {
        if {![isop $nick $chan]} {
                 putnow "NOTICE $nick :$nick, my guy; you aren't OP'd on $chan, sorry no can do..."
                 return 0
         } else {
   }
   set my_st [exec speedtest-cli --secure --simple | paste -sd% | sed "s/%/ || /g"]
   foreach line [split \002\00311,2$my_st \n] {
      putnow "PRIVMSG $chan :$line"
   }
}
bind pub m|m !uf do_uf

proc do_uf {nick uhost hand chan text} {
        if {![isop $nick $chan]} {
                 putnow "NOTICE $nick :$nick, my guy; you aren't OP'd on $chan, sorry no can do..."
                 return 0
         } else {
   }
   set my_uf [set ::env(TERM) linux ; exec ufetch-raspbian]
   foreach line [split $my_uf \n] {
      putnow "PRIVMSG $chan :$line"
   }
}
bind pub m|m !ufd do_ufd

proc do_ufd {nick uhost hand chan text} {
        if {![isop $nick $chan]} {
                 putnow "NOTICE $nick :$nick, my guy; you aren't OP'd on $chan, sorry no can do..."
                 return 0
         } else {
   }
   set my_ufd [set ::env(TERM) dumb ; exec ufetch-raspbian]
   foreach line [split $my_ufd \n] {
      putnow "PRIVMSG $chan :$line"
   }
}

putlog "Sane's inxipy is locked and loaded <3 UwU :<"

About

inxipy.tcl — fetches: sys info via inxi, storage info via pydf, online connection speedtest.net results via speedtest-cli, cool sys info via ufetch: a Tiny system info tool for Unix-like operating systems.

Resources

Stars

Watchers

Forks

Languages