using_epic_in_dumb_mode
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | using_epic_in_dumb_mode [2017/01/10 19:47] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Using EPIC in Dumb Mode====== | ||
+ | |||
+ | ====What is dumb mode?===== | ||
+ | Dumb mode is a non-full screen interface, which you can turn on with the -d command line option. | ||
+ | In Dumb mode, EPIC reads from stdin, and writes to stdout. | ||
+ | You can do everything in dumb mode that you can do in full screen mode | ||
+ | |||
+ | ====How do I start the client in dumb mode?==== | ||
+ | At the command line | ||
+ | |||
+ | epic5 -d yournick irc.server.com | ||
+ | |||
+ | Where you provide a nickname for " | ||
+ | I am assuming you already know what server you want to connect to. | ||
+ | |||
+ | ====What if I need to use SSL?==== | ||
+ | When you specify your server, you are actually supplying a bunch of colon separated fields. | ||
+ | You can specify multiple fields with their names | ||
+ | |||
+ | epic5 -d yournick irc.server.com: | ||
+ | |||
+ | Most SSL servers run on a different report (often 6697), and the only real magic here is " | ||
+ | That tells EPIC that the server at " | ||
+ | |||
+ | ====How do I do stuff when I log on to irc?==== | ||
+ | The first thing you need to know is that you can give instructions to epic in your ~/.epicrc file. | ||
+ | The very first line of your ~/.epicrc file should be | ||
+ | |||
+ | load global | ||
+ | |||
+ | And then after that, can be anything you want (see the examples below) | ||
+ | |||
+ | ====How do I msg nickserv when i connect to irc?==== | ||
+ | EPIC's programming language is event-driven. | ||
+ | Each time you connect to a server, a " | ||
+ | |||
+ | on ^connect " | ||
+ | |||
+ | In this example, whenever you connect to an irc server named " | ||
+ | msg a service called " | ||
+ | reflect the server' | ||
+ | bot on another network with your credentials! | ||
+ | |||
+ | ====How do I join a channel each time I connect to a server?==== | ||
+ | You can set up multiple hooks for the same event, as long as they use different serial numbers. | ||
+ | are a way that epic figures out what order to run them in. There are shortcuts for this. | ||
+ | |||
+ | on #^connect + " | ||
+ | |||
+ | Notice in this case, that before the word " | ||
+ | a serial number. | ||
+ | an unused serial number for me that is greater than 0" | ||
+ | first example). | ||
+ | |||
+ | ====How can I do something when someone says my nick?==== | ||
+ | There is an event that is thrown whenever someone sends you any kind of a PRIVMSG (either a direct message, or a | ||
+ | message to a channel). | ||
+ | of these two things is true | ||
+ | |||
+ | on # | ||
+ | |||
+ | There are two new things you see here. In this case, we used the serial number ' | ||
+ | number less than 0", and we have an /IF statement here. This IF statement has two clauses -- one checks to see if | ||
+ | $0 is your nickname (ie, it was sent to you), and the other checks to see if your nickname is contained in the message | ||
+ | (to pick up things like " | ||
+ | body of the IF statement, which is an / | ||
+ | " | ||
+ | |||
+ | |||
using_epic_in_dumb_mode.txt · Last modified: 2017/01/10 19:47 by 127.0.0.1