This repository has been archived on 2023-04-13. You can view files and clone it, but cannot push or open issues or pull requests.
CloudBot/README.md

97 lines
3.6 KiB
Markdown
Raw Permalink Normal View History

2013-07-15 13:22:17 +02:00
# CloudBot
2011-11-21 00:24:54 +01:00
2012-02-29 03:00:12 +01:00
## About
2012-02-29 03:47:11 +01:00
2013-06-21 11:55:02 +02:00
CloudBot is a Python IRC bot based on [Skybot](http://git.io/skybot) by [rmmh](http://git.io/rmmh).
2012-02-28 10:03:52 +01:00
2012-06-09 21:21:48 +02:00
## Getting and using CloudBot
2014-02-25 06:50:03 +01:00
### Download
2012-02-29 03:47:11 +01:00
2012-09-04 00:16:56 +02:00
Get CloudBot at [https://github.com/ClouDev/CloudBot/zipball/develop](https://github.com/ClouDev/CloudBot/zipball/develop "Get CloudBot from Github!").
2012-02-29 03:20:15 +01:00
Unzip the resulting file, and continue to read this document.
2012-02-28 09:48:46 +01:00
2012-06-09 21:21:48 +02:00
### Install
2013-07-28 13:02:19 +02:00
Before you can run the bot, you need to install a few Python dependencies. LXML is required while Enchant and PyDNS are needed for several plugins.
2013-07-01 17:47:33 +02:00
These can be installed with `pip` (The Python package manager):
2012-02-28 09:48:46 +01:00
2013-01-09 14:49:00 +01:00
[sudo] pip install -r requirements.txt
2013-09-13 15:15:36 +02:00
If you use `pip`, you will also need the following packages on linux or `pip` will fail to install the requirements.
```python, python-dev, libenchant-dev, libenchant1c2a, libxslt-dev, libxml2-dev.```
2012-02-28 11:10:17 +01:00
2012-09-04 00:16:56 +02:00
#### How to install `pip`
2012-02-28 19:33:35 +01:00
2013-01-09 13:27:46 +01:00
curl -O http://python-distribute.org/distribute_setup.py # or download with your browser on windows
python distribute_setup.py
easy_install pip
2013-07-01 17:47:33 +02:00
If you are unable to use pip, there are Windows installers for LXML available for [64 bit](https://pypi.python.org/packages/2.7/l/lxml/lxml-2.3.win-amd64-py2.7.exe) and [32 bit](https://pypi.python.org/packages/2.7/l/lxml/lxml-2.3.win32-py2.7.exe) versions of Python.
2012-02-28 09:48:46 +01:00
2012-06-09 21:21:48 +02:00
### Run
2012-05-09 23:36:30 +02:00
2013-08-01 09:19:42 +02:00
Before you run the bot, rename `config.default` to `config` and edit it with your preferred settings.
2012-05-09 23:36:30 +02:00
2013-08-01 09:19:42 +02:00
Once you have installed the required dependencies and renamed the config file, you can run the bot! Make sure you are in the correct folder and run the following command:
2012-05-09 23:36:30 +02:00
2013-08-01 09:19:42 +02:00
`python bot.py`
2013-07-01 17:47:33 +02:00
On Windows you can usually just double-click `bot.py` to start the bot, as long as you have Python installed correctly.
2012-05-09 23:36:30 +02:00
2012-06-09 21:21:48 +02:00
## Getting help with CloudBot
2011-11-21 00:24:54 +01:00
2012-06-09 21:21:48 +02:00
### Documentation
2012-02-29 02:54:07 +01:00
To configure your CloudBot, visit the [Config Wiki Page](http://git.io/cloudbotircconfig).
2012-02-29 02:54:07 +01:00
To write your own plugins, visit the [Plugin Wiki Page](http://git.io/cloudbotircplugins).
2012-02-29 02:54:07 +01:00
More at the [Wiki Main Page](http://git.io/cloudbotircwiki).
2012-02-29 02:54:07 +01:00
2013-07-15 13:22:17 +02:00
(some of the information on the wiki is outdated and needs to be rewritten)
2012-06-09 21:21:48 +02:00
### Support
2012-02-29 03:47:11 +01:00
The developers reside in [#CloudBot](irc://irc.esper.net/cloudbot) on [EsperNet](http://esper.net) and would be glad to help you.
2012-02-29 03:47:11 +01:00
2012-02-29 21:26:07 +01:00
If you think you have found a bug/have a idea/suggestion, please **open a issue** here on Github.
2012-02-29 03:47:11 +01:00
2012-06-09 21:21:48 +02:00
### Requirements
2012-02-28 10:12:46 +01:00
2013-07-15 13:22:17 +02:00
CloudBot runs on **Python** *2.7.x*. It is currently developed on **Windows** *8* with **Python** *2.7.5*.
2012-02-28 10:03:52 +01:00
2013-07-01 17:47:33 +02:00
It **requires the Python module** lXML.
The module `Enchant` is needed for the spellcheck plugin.
2013-07-15 13:22:17 +02:00
The module `PyDNS` is needed for SRV record lookup in the mcping plugin.
2012-02-28 09:56:16 +01:00
2013-07-01 17:47:33 +02:00
**Windows** users: Windows compatibility some plugins is **broken** (such as ping), but we do intend to add it. Eventually.
2012-02-29 03:00:12 +01:00
2012-06-09 21:21:48 +02:00
## Example CloudBots
2012-02-29 03:00:12 +01:00
2013-07-01 17:47:33 +02:00
You can find a number of example bots in [#CloudBot](irc://irc.esper.net/cloudbot "Connect via IRC to #CloudBot on irc.esper.net").
2012-02-28 09:57:35 +01:00
2012-02-29 03:00:12 +01:00
## License
2012-06-09 21:21:48 +02:00
2012-02-29 21:26:07 +01:00
CloudBot is **licensed** under the **GPL v3** license. The terms are as follows.
2013-01-09 13:27:46 +01:00
2013-07-15 13:22:17 +02:00
CloudBot
2011-11-21 11:53:32 +01:00
2013-07-15 13:22:17 +02:00
Copyright © 2011-2013 Luke Rogers
2011-11-21 11:51:21 +01:00
CloudBot is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
CloudBot is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
2012-02-29 02:54:07 +01:00
along with CloudBot. If not, see <http://www.gnu.org/licenses/>.