energymech/README

133 lines
4.6 KiB
Plaintext
Raw Normal View History

2014-03-08 20:54:42 -05:00
,-----------------------------------------------------------------.
| ,-----; ,------, ,-----; ,-------, ,----, , ,-. |
| / ,---' | ,. \ / ,---' | ,--, \ / ,-. \ /| | \ |
| | |___ | | \ \ | |___ | |__| ;| | `~' / | | | |
| | ,--' | | | || ,--' | |--; < | | ,--./ `-' | |
| | |__,-,| | | || |__,-,| | | || | \ |\___. | |
| | || | | || || | | || `~' | \ | |
| | || | | / | || | | / | | | | |
| `~~~~~`\/ `---' `/ `~~~~~`\/ `---' `/ `/~~~~~~' |,--' |
| ,---, ,---, ,-----; ,----. ,-. ,--. |
| | \ / | / ,---' / ,--' / | | | |
| | \/ || |___ | | | |__| | |
| | |\ /| || ,--' | | | ,--. | |
| | | \/ | || |__,-,| | /|| | | | |
| | | | || || `--' || | | | |
| | | | || || || | | / |
| `---' `---'`~~~~~`\/ `\___/~~~'`---' `/ |
`-----------------------------------------------------------------'
2014-03-08 19:56:21 -05:00
Compiling?
~~~~~~~~~~
To compile the source:
2018-04-17 01:42:46 +02:00
1) git clone https://github.com/EnergyMech/energymech.git
-- If you don't have git you can still download the source:
2018-04-17 01:42:46 +02:00
wget http://github.com/EnergyMech/energymech/archive/master.tar.gz
tar xvf master.tar.gz
2014-03-08 19:56:21 -05:00
2014-03-08 20:54:42 -05:00
2) cd energymech
2014-03-08 19:56:21 -05:00
-- 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.
2018-04-04 16:25:26 +02:00
-- If you want to cross compile export the prefix of your toolchain:
export CROSS_COMPILE="armv7a-hardfloat-linux-gnueabi-"
2014-03-08 19:56:21 -05:00
2018-04-04 16:25:26 +02:00
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.
2018-04-02 18:33:49 +02:00
-- On a modern multi-core cpu, you can run make with the appropriate
2018-04-04 16:25:26 +02:00
-j switch to shave off a few seconds of compile time. (This will
not work with ``make mega'' or ``mage mega-install''.
2018-04-02 18:33:49 +02:00
For example:
``make -j4'' for a 4 core cpu system.
2014-03-08 19:56:21 -05:00
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
2018-03-10 02:55:07 +01:00
much more than NICK, SET ALTNICK, SET USERFILE, JOIN and SERVER
entries, the rest is mostly just tweaks of default values.
2014-03-08 19:56:21 -05:00
Quick steps:
1) cp sample.conf mech.conf
2018-03-10 02:55:07 +01:00
2) edit mech.conf
-- replace ''edit'' with your favourite text editor, look through
2014-03-08 19:56:21 -05:00
the file for sections to change, you will have to remove lines
in order to get the bot to work. Check the file completely!
2014-03-08 19:56:21 -05:00
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'
2018-03-10 02:55:07 +01:00
is a good descriptive name which I often use myself).
2014-03-08 19:56:21 -05:00
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.
2014-03-08 19:56:21 -05:00
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.
2018-04-02 18:33:49 +02:00
Or run with ``./configure --with-debug''.
2014-03-08 19:56:21 -05:00
2018-04-04 16:25:26 +02:00
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.
2014-03-08 19:56:21 -05:00
---*---
Updated Files?
~~~~~~~~~~~~~~
2018-03-26 01:52:24 +02:00
The main distribution site for the EnergyMech is:
2014-03-08 19:56:21 -05:00
2018-04-17 01:42:46 +02:00
https://github.com/EnergyMech/energymech
2018-03-10 02:55:07 +01:00
2018-04-04 06:04:58 +02:00
Extra files for users of EnergyMech can be found at:
2018-04-17 01:42:46 +02:00
https://github.com/EnergyMech/energymech-extra
2018-04-04 06:04:58 +02:00
2018-03-10 02:55:07 +01:00
Files, documentation and tips can be found at:
2025-11-05 21:29:53 +01:00
(no official website currently)
2014-03-08 19:56:21 -05:00
---*---
THIS SOFTWARE IS PROVIDED AS IS. YOU ARE ENTIRELY ON YOUR OWN WHEN
IT COMES TO CONFIGURING AND USING IT.
---*---
2025-11-05 21:29:53 +01:00
proton, November 5th, 2025.