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.
Go to file
Luke Rogers 403ed3bb74 Why the hell did I decide to make this branch Python 3 2014-03-31 20:30:05 +13:00
core dccd 2014-03-25 16:32:00 +13:00
data Merge branch 'develop' into refresh 2014-02-16 17:46:20 +13:00
plugins Why the hell did I decide to make this branch Python 3 2014-03-31 20:30:05 +13:00
util :D new simplier command API kinda working 2014-03-25 15:00:53 +13:00
.editorconfig Create .editorconfig 2013-07-31 22:10:21 +08:00
.gitignore Merge branch 'develop' into refresh 2013-11-30 16:59:03 +13:00
CONTRIBUTING.md Adjust terms, change references to 'master' to 'develop', fix links 2013-08-01 21:03:24 +08:00
CONTRIBUTORS Added RAINBOWS 2013-10-01 10:03:46 +13:00
LICENSE Remove executable permissions 2013-11-29 19:47:40 -08:00
README.md Merge branch 'develop' into refresh 2014-03-06 10:56:05 +13:00
cloudbot.py dccd 2014-03-25 16:32:00 +13:00
config.default Update config.default 2013-11-28 16:58:08 +13:00
requirements.txt Python 3 Start 2014-03-06 11:45:00 +13:00

README.md

CloudBot

About

CloudBot is a Python IRC bot based on Skybot by rmmh.

Getting and using CloudBot

Download

Get CloudBot at https://github.com/ClouDev/CloudBot/zipball/develop.

Unzip the resulting file, and continue to read this document.

Install

Before you can run the bot, you need to install a few Python dependencies. LXML is required while Enchant, PyGeoIP, TweePy and PyDNS are needed for several plugins.

These can be installed with pip (The Python package manager) by running the following command in the bot directory:

pip install -r requirements.txt

Note: 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.

(this can be done using your package manager (eg: apt-get or yum)

How to install pip

You can usually install pip on linux by installing the python-pip package using your package manager (eg. apt-get install python-pip or yum install python-pip as root), or you can try the below code to download and install it manually.

curl -O http://python-distribute.org/distribute_setup.py # or download with your browser on windows
python distribute_setup.py
easy_install pip

If you need help installing pip on Windows, follow this guide and then run easy_install pip on the command line.

Run

Before you run the bot, rename config.default to config.json and edit it with your preferred settings. You can check if your JSON is valid on this site!

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:

python cloudbot.py

On Windows you can usually just double-click cloudbot.py to start the bot, as long as you have Python installed correctly.

Getting help with CloudBot

Documentation

To configure your CloudBot, visit the Config Wiki Page.

To write your own plugins, visit the Plugin Wiki Page.

More at the Wiki Main Page.

(some of the information on the wiki is outdated and needs to be rewritten)

Support

The developers reside in #CloudBot on EsperNet and would be glad to help you.

If you think you have found a bug/have a idea/suggestion, please open a issue here on Github and contact us on IRC!

Requirements

CloudBot runs on Python 2.7.x. It is currently developed on Windows 8 with Python 2.7.5.

It requires the Python modules lXML, watchdog and BeautifulSoup4. The module Enchant is needed for the spellcheck plugin. The module PyDNS is needed for SRV record lookup in the mcping plugin. The module PyGeoIP is needed for location lookup in the geoip plugin. The module TweePy is needed for the twitter plugin.

Windows users: Windows compatibility some plugins is broken (such as ping), but we do intend to add it. Eventually.

Example CloudBots

You can find a number of example bots in #CloudBot.

License

CloudBot is licensed under the GPL v3 license. The terms are as follows.

CloudBot

Copyright © 2011-2013 Luke Rogers

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
along with CloudBot.  If not, see <http://www.gnu.org/licenses/>.