-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathREADME
132 lines (98 loc) · 4.62 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
,-----------------------------------------------------------------.
| ,-----; ,------, ,-----; ,-------, ,----, , ,-. |
| / ,---' | ,. \ / ,---' | ,--, \ / ,-. \ /| | \ |
| | |___ | | \ \ | |___ | |__| ;| | `~' / | | | |
| | ,--' | | | || ,--' | |--; < | | ,--./ `-' | |
| | |__,-,| | | || |__,-,| | | || | \ |\___. | |
| | || | | || || | | || `~' | \ | |
| | || | | / | || | | / | | | | |
| `~~~~~`\/ `---' `/ `~~~~~`\/ `---' `/ `/~~~~~~' |,--' |
| ,---, ,---, ,-----; ,----. ,-. ,--. |
| | \ / | / ,---' / ,--' / | | | |
| | \/ || |___ | | | |__| | |
| | |\ /| || ,--' | | | ,--. | |
| | | \/ | || |__,-,| | /|| | | | |
| | | | || || `--' || | | | |
| | | | || || || | | / |
| `---' `---'`~~~~~`\/ `\___/~~~'`---' `/ |
`-----------------------------------------------------------------'
Compiling?
~~~~~~~~~~
To compile the source:
1) git clone https://github.com/EnergyMech/energymech.git
-- If you don't have git you can still download the source:
wget http://github.com/EnergyMech/energymech/archive/master.tar.gz
tar xvf master.tar.gz
2) cd energymech
-- Since you are reading this file, you have most likely already
come to this point.
3) ./configure
-- This script will prompt you for features to include or exclude,
going with the default is not a bad idea.
-- If you want to cross compile export the prefix of your toolchain:
export CROSS_COMPILE="armv7a-hardfloat-linux-gnueabi-"
4) make install
-- If you have a modern/more powerful machine you can try to compile
the mech with ``make mega'' or ``make mega-install''. This way
produces a slightly more compact and efficient executable.
-- On a modern multi-core cpu, you can run make with the appropriate
-j switch to shave off a few seconds of compile time. (This will
not work with ``make mega'' or ``mage mega-install''.
For example:
``make -j4'' for a 4 core cpu system.
If all went well you should now have an executable called
``energymech''.
---*---
Setup?
~~~~~~
Read the sample.conf file to get an idea of the config file
commands and then try to make your own. A basic setup doesnt need
much more than NICK, SET ALTNICK, SET USERFILE, JOIN and SERVER
entries, the rest is mostly just tweaks of default values.
Quick steps:
1) cp sample.conf mech.conf
2) edit mech.conf
-- replace ''edit'' with your favourite text editor, look through
the file for sections to change, you will have to remove lines
in order to get the bot to work. Check the file completely!
3) make a userfile
construct a temporary file (trick.conf) containing;
---------------------------------------------------------------
set userfile whateveryouwanttonameit
user + handle * *!*yourident@*.yourdomain.com 100 password
save
shutdown
---------------------------------------------------------------
then 'run' this file with './energymech -f trick.conf'. this
will create a userfile with the name you chose ('mech.passwd'
is a good descriptive name which I often use myself).
re-use the filename you selected in your proper configuration
file. and remember to 'rm -f mech.session' if you compiled your
energymech with session support.
4) ./energymech
That should get you running. If you don't see your bot come on IRC
after a few minutes, you should try running the bot in debug mode
to see what's going on with...
./energymech -d
If you get an 'Unknown option -d', you need to answer 'Y' to debug
support when running ./configure from the compiling section above.
Or run with ``./configure --with-debug''.
If you are unsure about if you configured everything correctly and
want to test the configuration, you can run:
./energymech -t
This will run the startup sequence in a normal way, but will quit
right before the bot enters the main loop.
---*---
Updated Files?
~~~~~~~~~~~~~~
The main distribution site for the EnergyMech is:
https://github.com/EnergyMech/energymech
Extra files for users of EnergyMech can be found at:
https://github.com/EnergyMech/energymech-extra
Files, documentation and tips can be found at:
http://www.energymech.net
---*---
THIS SOFTWARE IS PROVIDED AS IS. YOU ARE ENTIRELY ON YOUR OWN WHEN
IT COMES TO CONFIGURING AND USING IT.
---*---
proton, April 17th, 2018.