Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
project:irc:secretary [2016/10/24 02:53]
over23 [projects][active][SECRETARY]: pridan uzitecny link na Ops pomoci NickServ
project:irc:secretary [2019/07/12 19:16]
over23 [Use hilight to show regexp word [typical your nick]]
Line 1: Line 1:
-====== ​Project to upgrade ​IRC bot ======+====== IRC howtos, freenode.net #labka channel, IRSSI magic & scripts, SECRETARY <3 ======
  
 |**Project owner:**| [[user:​overdrive|Overdrive]] | |**Project owner:**| [[user:​overdrive|Overdrive]] |
 |**Interested:​** | peterbay, [[user:​dave@page]] | |**Interested:​** | peterbay, [[user:​dave@page]] |
-|**Related:​**| [[irc_logs:​best_of_secretary|Best IRC Logs]] |+|**Related:​**| [[irc_logs:​best_of_secretary|Best IRC Logs]] ​--  [[https://​github.com/​Labka-cz/​Irssi_scripts|GitHub - Labka Repo : Secretary scripts]] -- [[https://​github.com/​Over23/​Linux_Configs/​blob/​master/​config|GitHub : Over's IRSSI config - comment-less]] | 
 +| **linkz:** | https://​github.com/​irssi/​irssi/​blob/​master/​docs/​special_vars.txt;​ https://​irssi.org/​documentation/​tips/;​ https://​quadpoint.org/​articles/​irssi/;​ http://​www.antonfagerberg.com/​blog/​my-perfect-irssi-setup/ ​|
 | **License:​** | [[https://​creativecommons.org/​licenses/​by-sa/​3.0/​|Uveďte původ-Zachovejte licenci CC BY-SA]] ​ | | **License:​** | [[https://​creativecommons.org/​licenses/​by-sa/​3.0/​|Uveďte původ-Zachovejte licenci CC BY-SA]] ​ |
  
- +===== Total basics of IRSSI and screen ​=====
-===== How does it work =====+
 {{ project:​irc:​secretary.jpg?​400}} {{ project:​irc:​secretary.jpg?​400}}
 +
 +* ssh yourself to Darkstar [exLabka Shell] : 193.84.207.21
 +
 +  ssh USERNAME@193.84.207.21 ​  
 +
 +  screen -U 
 +  irssi 
 +  /connect chat.freenode.net ​
 +  /nick your_nick
 +  /save
 +  /j #​labka ​
 +  [ /wc ] - closing chat window
 +  [j #​labka_secret] - connect to other chat room
 +  [/help any_command - will give you help for commands, it is accepting tab as Linux command line]
 +
 +  ctrl+p or n - switching between chat windows [rooms] - ala alt+tab
 +  ctrl + number [or qwerty when over 10] - switching to direct number of window [/window list will show you which window is which #]
 +
 +  screen -list - will give you list of all screens opened and running
 +  screen -rdU - will switch you to reattached screen window
 +
 +inside screen:
 +  screen is accepting ctrl + a [something]
 +  ctrl + a + d - detach screen [reattach by screen -rdU from command line]
 +  ctrl + a + c - create new screen window
 +  ctrl + a + a - rotate between screen windows [again like alt+tab]
 +
 +Nice howtos:
 +* http://​www.antonfagerberg.com/​blog/​my-perfect-irssi-setup/ ​
 +
 +* https://​quadpoint.org/​articles/​irssi/ ​
 +
 +* moar about screen: http://​aperiodic.net/​screen/​quick_reference ​
 +
 +* nice .screenrc
 +<​code>​
 +hardstatus alwayslastline
 +hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?​%-Lw%?​%{r}(%{W}%n*%f%t%?​(%u)%?​%{r})%{w}%?​%+Lw%?​%?​%= %{g}][%{B} %d/%m %{W}%c %{g}]'
 +vbell off
 +startup_message off
 +defscrollback 2048
 +</​code>​
 +
 +==== Use hilight to show regexp word [typical your nick] ====
 +insight irssi
 +<​code>​
 +/window new split
 +/window name hilight
 +/window size 6
 +/layout save
 +</​code>​
 +
 +==== AutoJoin channels ====
 +
 +* If you want to auto-join some channels, you can add them the same way as well:
 +<​code>​
 +/channel add -auto #irssi Freenode
 +/channel add -auto #xkcd Foonetic
 +</​code>​
 +
 +===== IRC applications and tools =====
 +  * notify android cell phone : https://​irssinotifier.appspot.com/​
 +  * connect IRC to Slack: https://​sameroom.io/​blog/​connecting-a-channel-in-slack-to-a-channel-irc/​
 +===== SECRETARY BOT : How does it work =====
 +
   * you need running IRSSI instance and your bot is just one [[https://​irssi.org/​|IRSSI]] identity, best is to run single instance of [[https://​quadpoint.org/​articles/​irssi/​|IRSSI in screen somewhere]]   * you need running IRSSI instance and your bot is just one [[https://​irssi.org/​|IRSSI]] identity, best is to run single instance of [[https://​quadpoint.org/​articles/​irssi/​|IRSSI in screen somewhere]]
   * configuration of bot is done by IRSSI, so you want have it named, connect somewhere... [[https://​irssi.org/​|IRSSI]] is your friend   * configuration of bot is done by IRSSI, so you want have it named, connect somewhere... [[https://​irssi.org/​|IRSSI]] is your friend
Line 103: Line 168:
 ====== IRSII ====== ====== IRSII ======
   * https://​irssi.org/​documentation/​tips/​   * https://​irssi.org/​documentation/​tips/​
 +===== Ignore connect, join, part =====
 +
 +   /​ignore #openstack MODES JOINS PARTS QUITS
 +
 ====== Notes [to remove and so] ====== ====== Notes [to remove and so] ======
   * add complete dependences to git for easy deploy   * add complete dependences to git for easy deploy
Line 121: Line 190:
  
  
-== Exectute command PERL ==+===== Exectute command PERL =====
   * by Veverak, Base48 : https://​bpaste.net/​show/​e1143148fbbb   * by Veverak, Base48 : https://​bpaste.net/​show/​e1143148fbbb
 +
 <​code>​ <​code>​
 my $sourcedir = dirname(__FILE__)."/​foh";​ my $sourcedir = dirname(__FILE__)."/​foh";​
Line 159: Line 229:
 } }
 </​code>​ </​code>​
-== Usefull commands on freenode.net ==+ 
 +===== Usefull commands on freenode.net ===== 
 +* http://​little418.com/​2012/​01/​adding-ops-to-your-new-freenode-channel.html 
 +   ## reguster your nick 
 +   /msg NickServ REGISTER password youremail@example.com 
 +   ## identify registered nick 
 +   /msg NickServ identify PWD 
 +   ## give nick OP ad hoc on channel 
 +   /msg ChanServ OP #CHaNNel NICK 
 +   
 * http://​little418.com/​2012/​01/​adding-ops-to-your-new-freenode-channel.html * http://​little418.com/​2012/​01/​adding-ops-to-your-new-freenode-channel.html
 +   ## give nick op and auto-op
 +   /msg chanserv flags #CHANnEL NICK +Oo 
 +   ## list flags of channel
 +   /msg chanserv flags #​CHANnEL ​
  
-   /msg NickServ identify pwd +   ## allow external messages to channel, use when configuring GitHub bot [repo, settings, webHooks] 
-   /msg ChanServ ​OP #chan­nel nick+   /msg ChanServ ​set #CHANNELNAME mlock -nc
  
-== screen ==+===== screen ​=====
    ​screen -U #to understand UTF-8    ​screen -U #to understand UTF-8
    ​create new window C-a c    ​create new window C-a c
    ​change to last-visited active window C-a C-a (commonly used to flip-flop between two windows)    ​change to last-visited active window C-a C-a (commonly used to flip-flop between two windows)
        
-== cpan ==+===== cpan / cpanm =====
 * install cpanm * install cpanm
    curl -L http://​cpanmin.us | perl - --sudo App::​cpanminus    curl -L http://​cpanmin.us | perl - --sudo App::​cpanminus
    cpanm Hailo.pm    cpanm Hailo.pm
 +   
 +===== channel modes =======
 +  /msg ChanServ set #​CHANNELNAME mlock -nc
 +  ​
 +
 +
 +
  
  • project/irc/secretary.txt
  • Last modified: 2019/07/18 04:36
  • by over23