Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
project:irc:secretary [2016/11/09 09:53] over23 secretary project, totally basics for IRSSI and screen [bottom of page] |
project:irc:secretary [2019/07/12 19:57] over23 idleRPG added |
||
---|---|---|---|
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> | ||
+ | |||
+ | ==== IDLE-RPG ==== | ||
+ | |||
+ | * https://idlerpg.lolhosting.net/index.php - game were you are supposed to do nothing, trust me and try it | ||
+ | <code> | ||
+ | /msg IdleBot REGISTER NAME PASSWORD PROFESSION | ||
+ | /msg IdleBot LOGIN NAME PASSWPRD | ||
+ | |||
+ | /msg IdleBot LOGOUT | ||
+ | /msg IdleBot NEWPASS <new password> | ||
+ | /channel help | ||
+ | /channel add -auto #idlerpg freenode | ||
+ | </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 185: | ||
====== 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 163: | Line 249: | ||
===== Usefull commands on freenode.net ===== | ===== Usefull commands on freenode.net ===== | ||
* 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 | ||
+ | ## reguster your nick | ||
+ | /msg NickServ REGISTER password youremail@example.com | ||
## identify registered nick | ## identify registered nick | ||
/msg NickServ identify PWD | /msg NickServ identify PWD | ||
Line 169: | Line 257: | ||
* 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 nic op and auto-op | + | ## give nick op and auto-op |
/msg chanserv flags #CHANnEL NICK +Oo | /msg chanserv flags #CHANnEL NICK +Oo | ||
## list flags of channel | ## list flags of channel | ||
Line 190: | Line 278: | ||
/msg ChanServ set #CHANNELNAME mlock -nc | /msg ChanServ set #CHANNELNAME mlock -nc | ||
| | ||
- | ===== Total basics of IRSSI and screen ==== | ||
- | 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 | ||