Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kakwa/supybot-plugin-seloger
supybot plugin for seloger
https://github.com/kakwa/supybot-plugin-seloger
bot housing irc irc-bot python seloger supybot-plugin
Last synced: about 2 months ago
JSON representation
supybot plugin for seloger
- Host: GitHub
- URL: https://github.com/kakwa/supybot-plugin-seloger
- Owner: kakwa
- Created: 2013-01-13T13:26:06.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2019-01-07T14:14:42.000Z (about 6 years ago)
- Last Synced: 2024-04-16T18:34:02.332Z (9 months ago)
- Topics: bot, housing, irc, irc-bot, python, seloger, supybot-plugin
- Language: Python
- Size: 542 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
supybot-plugin-seloger
======================supybot plugin for seloger
## Description ##
This supybot plugin searches and alerts you in query for any new adds on
the french website "www.seloger.com".## License ##
See the plugin files.
## Screenshot ##
Here is the result inside irssi:
## Dependancies ##
This plugin relies on:
* supybot
* lxml
* sqlite3
* python2## Commands ##
Here is the commands list with a few examples:
* `slhelp`: help for this module
```bash
slhelp
```* `sladdrent `: add a new rent search for you
```bash
sladdrent 59000 20 600 1
Done sladd
```* `sladdbuy `: add a new buy search for you
```bash
sladdbuy 75001 20 6000000000 10
Done sladd
```* `sllist`: list your active searches
```bash
sllist
ID: d5671b6f12ebee2449f307513f3c6322 | Surface >= 20 | Loyer <= 600 | cp == 59000 | type ad == 1 | Pieces >= 1
ID: 939262a37d935f4e6297de3a7afbf483 | Surface >= 20 | Loyer <= 6000000000 | cp == 75001 | type ad == 2 | Pieces >= 10
Done sllist
```* `sldisable `: remove the given search (use sllist to recover the )
```bash
sldisable 939262a37d935f4e6297de3a7afbf483
```* `slstatrent `: print some stats about your rent searches
```bash
slstatrent 59000
[...]
Done slstat
```* `slstatbuy `: print some stats about your buy searches
```bash
slstatbuy all
[...]
Done slstat
```This plugin replies you and sends you new adds in query.
## Installation ##
This section explains how to install supybot
(given that you already have git and the dependancies installed)It might also be a good idea to create a dedicated user for supybot.
Here are the commands to create a supybot from scratch with this plugin:
```shell
$ mkdir mybot/
$ cd mybot/
$ supybot-wizard #answer the questions (install it in the default directory (./))
$ git clone https://github.com/kakwa/supybot-plugin-seloger.git plugins/SeLoger/
$ sed -i 's/\(supybot.plugins:.*\)/\1\ SeLoger/' *.conf
$ echo "supybot.plugins.SeLoger: True" >>*.conf
$ echo "supybot.plugins.SeLoger.public: True" >>*.conf
$ screen supybot *.conf
```And it should work, however, some servers could kick the bot for excess flood
(it sends a lot of messages, specialy when adding new search),
just change this parameter inside your bot configuration file:```
supybot.protocols.irc.throttleTime:
```