Difference between revisions of "JabberBot"

From JaWiki (Jabber/XMPP wiki)
Jump to: navigation, search
m (Jabberbot moved to JabberBot over redirect: fix)
Line 1: Line 1:
{{Library
+
20161220meiqing
|            name=JabberBot
+
http://www.michaelkorsoutlet-online.org
|              url=http://thpinfo.com/2007/python-jabberbot/
+
http://www.yeezyboost350.me.uk
|          author=Thomas Perl
+
http://www.adidas-nmd.us.com
|        language={{Lang|l|Python}}
+
http://www.cheapoakleyssunglasses.us.org
|          license=GNU GPLv3
+
http://www.michaelkorsoutletonlineclearance.us.com
|          roster=да
+
http://www.thenorthfaceoutlet.com.co
}}
+
http://www.chaussurelouboutin-pascher.fr
 
+
http://www.buyredbottomcheapshoesonline.com
'''JabberBot''' — маленькая [[библиотека]] на [[Python]], оболочка для [[xmpppy]], которая позволяет быстро и легко создавать маленьких ботов, выполняющих одну задачу, но делающих это хорошо. Томасу Перлу (Thomas Perl), автору этого проекта, идея пришла после изучения примера для библиотеки xmpppy. Он решил доделать код и оформить его в виде класса, упростив таким образом создание простых ботов.
+
http://www.airmax90.org
 
+
http://www.truereligionoutlet.com.co
== Использование ==
+
http://www.coach-outletonlines.us.com
 
+
http://www.uggs-australia.it
Краткая инструкция:
+
http://www.moncleroutlet.in.net
# Импортируйте библиотеку: from jabberbot import JabberBot
+
http://www.longchampbags.uk
# Наследуйте класс JabberBot в своем классе
+
http://www.dolceandgabbanaoutlet.com
# Добавьте методы начинающиеся с bot_, это будущие команды бота.
+
http://www.michael-korsoutlet.ca
#: Например, метод bot_displayid(self, mess, args) вызывается командой displayid и должен вернуть или строку, которая потом будет отправлена пользователю, или None.
+
http://www.doudounemonclerpascher.fr
# Создайте экземпляр своего класса, передав [[JID]] и пароль в качестве параметров.
+
http://www.longchamphandbags.us
# Вызовите метод serve_forever().
+
http://www.timberlandbootsoutlet.us
# С помощью метода send() вы можете отправлять сообщения отдельным пользователям.
+
http://www.armani-exchange.us
 
+
http://www.uggaustraliaoutlet.us.com
== Пример ==
+
http://www.jimmychoo.in.net
 
+
http://www.chaussure-louboutin.fr
from jabberbot import JabberBot
+
http://www.puma-shoes.in.net
import datetime
+
http://www.uggscheap.us.com
 
+
http://www.monclerjacketsuk.org.uk
class SystemInfoJabberBot(JabberBot):
+
http://www.cheap-ugg-boots.us.com
    def bot_serverinfo( self, mess, args):
+
http://www.nikefreeflyknit.name
        """Displays information about the server"""
+
http://www.cheap-nbajerseys.us.com
        version = open('/proc/version').read().strip()
+
http://www.nikefreerun.name
        loadavg = open('/proc/loadavg').read().strip()
+
http://www.louisvuittonhandbagsuk.me.uk
       
+
http://www.pandora-charms.me.uk
        return '%s\n\n%s' % ( version, loadavg, )
+
http://www.redbottomshoes.in.net
   
+
http://www.edhardyukclothing.me.uk
    def bot_time( self, mess, args):
+
http://www.canadagooseoutlets.us.com
        """Displays current server time"""
+
http://www.truereligionjeansoutlet.name
        return str(datetime.datetime.now())
+
http://www.hermesbeltoutlet.us
   
+
http://www.adidasnmd.org.uk
    def bot_rot13( self, mess, args):
+
http://www.abercrombieandfitch.in.net
        """Returns passed arguments rot13'ed"""
+
http://www.polooutlet.com.co
        return args.encode('rot13')
+
http://www.canadagooseoutlet.ca
   
+
http://www.cheap-jerseyswholesale.us
    def bot_whoami( self, mess, args):
+
http://www.uggs-pas-cher.fr
        """Tells you your username"""
+
http://www.uggscanada.ca
        return mess.getFrom()
+
http://www.adidas-shoes.us.com
 
+
http://www.katespadehandbags.net.co
username = 'my-jabberid@jabberserver.example.org'
+
http://www.michaelkors-handbags.uk
password = 'my-password'
+
http://www.cheapmlbjerseys.us
bot = SystemInfoJabberBot(username,password)
+
http://www.rolexdaytona.in.net
bot.serve_forever()
+
http://www.polooutlets.us.com
 
+
http://www.cheap-jordans.us
Пример работы:
+
http://www.nfl-jerseys-wholesale.us.com
 
+
http://www.pandorajewelryoutlet.org
http://thpinfo.com/2007/python-jabberbot/jabberbot-screenshot.png
+
http://www.true-religion.us.com
 
+
http://www.cheap-uggs.us.com
== Зависимости ==
+
http://www.longchampbagsuk.org.uk
 
+
http://www.oakley--sunglasses.us.org
* [[xmpppy]]
+
http://www.ugg-australia.org.uk
 
+
http://www.hollistersaleuk.me.uk
==Ссылки==
+
http://www.canadagooseoutlet.net.co
 
+
http://www.pandorauk.org.uk
* [http://thpinfo.com/2007/python-jabberbot/ Сайт]
+
http://www.christianlouboutinshoes.us.org
 +
http://www.poloralphlauren-outlet.co.uk
 +
http://www.chiflatiron.in.net
 +
http://www.valentino.in.net
 +
http://www.tomsoutletstores.in.net
 +
http://www.rolex-replicawatches.com.co
 +
http://www.coachoutletus.us.com
 +
http://www.skechersshoes.us
 +
http://www.michaelkors-handbags.us.org
 +
http://www.michaelkorsoutletclearances.us.com
 +
http://www.louisvuittonoutlet.ca
 +
http://www.ugg-bootsoutlet.co.uk
 +
http://www.oakley--sunglasses.net.co
 +
http://shop.uggmalls.uk
 +
http://www.uggsboots.org.uk
 +
http://www.pandoracharmssaleclearance.com
 +
http://www.coachoutlet.in.net
 +
http://www.cheapnfljerseys-wholesale.us
 +
http://www.cheapuggsoutlets.us.com
 +
http://www.adidas-shoes.me.uk
 +
http://www.raybans.org.uk
 +
http://www.kobeshoes.name
 +
http://www.christianlouboutin.us.org
 +
http://www.michael-korshandbags.us.com
 +
http://www.oakleysunglassesoutlet.in.net
 +
http://www.coachoutletonlinecoachfactoryoutlet.us.com
 +
http://www.fitflops.in.net
 +
http://www.birkenstocks.us.com
 +
http://www.airjordan-uk.org.uk
 +
http://www.designerhandbags.net.co
 +
http://www.moncler-outlet.us.com
 +
http://www.thenorthface.org.uk
 +
http://www.rolexreplicawatches.name
 +
http://www.red-bottoms.us.com
 +
http://www.longchamp-handbags.us
 +
http://www.cheapjordans.us.com
 +
http://www.bottegaveneta.in.net
 +
http://www.christianlouboutinshoesoutlet.com
 +
http://www.cheapjordans.com.co
 +
http://www.coachoutletstoreonlineclearances.org
 +
http://www.coachpursesoutlet.in.net
 +
http://www.coach-outlets.us.com
 +
http://www.lacosteshoes.us
 +
http://www.pandoracharms.com.co
 +
http://www.louisvuitton-outlet-online.us.com
 +
http://www.discountoakleysunglasses.com.co
 +
http://www.uggsaustralia.fr
 +
http://www.nikecortez.com.co
 +
http://www.michaelkorspurses.in.net
 +
http://www.canadagoose-outlet.name
 +
http://www.versaceshoes.in.net
 +
http://www.nikehuarache.com.co
 +
http://www.raybansunglassesdiscount.com.co
 +
http://www.louis-vuitton-handbags.us.org
 +
http://www.tomsshoes.us.com
 +
http://www.christianlouboutinshoes.us
 +
http://www.canada-goosejackets.org.uk
 +
http://www.adidasyeezyshoes.us.com
 +
http://www.hugobossoutlet.name
 +
http://www.fitflopssaleclearance.net
 +
http://www.louisvuittonoutletus.us.com
 +
http://www.cheapoakleyssunglasses.com.co
 +
http://www.conversetrainer.co.uk
 +
http://www.coachfactory-outletstore.us.com
 +
http://www.christianlouboutinoutletsale.org
 +
http://www.cheapjordanshoes.us.com
 +
http://www.outletlongchamp.us
 +
http://www.fitflops.us
 +
http://www.nike-blazerlow.fr
 +
http://www.vansshoes.in.net
 +
http://www.cheapbasketballshoes.us
 +
http://www.coach--outlet.us.com
 +
http://www.katespadehandbags.org.uk
 +
http://www.michaelkorsoutletonlineclearance.in.net
 +
http://www.cheapraybans.com.co
 +
http://www.toryburchoutletstores.in.net
 +
http://www.uggs--canada.ca
 +
http://www.edhardy-outlet.name
 +
http://www.eccoshoes.us
 +
http://www.hermesbirkin.in.net
 +
http://www.coachfactoryonlineoutlet.com.co
 +
http://www.louisvuitton-sac-pascher.fr
 +
http://www.uggsale.us.com
 +
http://www.fake-rolex.us
 +
http://www.kevindurantshoes.us
 +
http://www.coachoutlets.us.org
 +
http://www.canadagoosejacketscanadagooseoutlet.us.com
 +
http://www.nike-store.us.com
 +
http://www.michaelkors-outletsale.us.com
 +
http://www.adadassuperstar.com
 +
http://www.adadassupercolor.com
 +
http://www.burberry-outlet-canada.ca
 +
http://www.longchampoutletstore.com
 +
http://www.michaelkorshandbag.us.com
 +
http://www.michaelkors-outlet.us.com
 +
http://www.uggsboots.fr
 +
http://www.fitflopssaleclearance.com
 +
http://www.nikeshoes.us.com
 +
http://www.reebokshoes.in.net
 +
http://www.guccihandbagsoutlet.us
 +
http://www.ralph-lauren-pas-cher.fr
 +
http://www.supraforsale.in.net
 +
http://www.cheapuggs.org.uk
 +
http://www.canadagoosejacketsuk.co.uk
 +
http://www.michaelkorsoutletclearance.in.net
 +
http://www.michaelkors-handbags.us.com
 +
http://www.birkenstocksandals.name
 +
http://www.kate-spadeoutlet.in.net
 +
http://www.cheapjordans-shoes.us.com
 +
http://www.abercrombieandfitchoutlet.name
 +
http://www.pandora-bracelet.us
 +
http://www.celineoutlet.us
 +
http://www.wwwlouisvuittonoutlet.us.com
 +
http://www.yeezyboost.us.com
 +
http://www.adidasnmd.us.org
 +
http://www.michaelkors-outlet.ca
 +
http://www.converseshoes.in.net
 +
http://www.michaelkorsoutletstore.us.com
 +
http://www.coachoutletstoreonlineclearances.in.net
 +
http://www.rolexwatchesuk.me.uk
 +
http://www.niketrainers.com.co
 +
http://www.raybans.us.com
 +
http://www.hollisterclothing.org
 +
http://www.michaelkors-purses.us.com
 +
http://www.michaelkorshandbagsuk.me.uk
 +
http://www.coachoutletstoreonline.com.co
 +
http://www.timberlandbootsoutlet.name
 +
http://www.coachfactoryoutlet-online.in.net
 +
http://www.oakley.nom.co
 +
http://www.canadagooseuk.co.uk
 +
http://www.uggboots-outlets.us.com
 +
http://www.polooutlet.in.net
 +
http://www.airmaxoutletsaleus.com
 +
http://www.nike-airmax90.me.uk
 +
http://www.louisvuitton-borse.it
 +
http://www.coach-outletonline.us.org
 +
http://www.adadasstansmith.com
 +
http://www.rayban-eyeglasses.us.com
 +
http://www.yeezyboost-350.us.com
 +
http://www.ugg--outlet.us.com
 +
http://www.canada-goose-jackets.ca
 +
http://www.coachfactoryoutletonline.in.net
 +
http://www.gucci--borse.it
 +
http://www.michaelkorsoutletclearance.net.co
 +
http://www.nike-tn-pascher.fr
 +
http://www.jordan-femmepascher.fr
 +
http://www.outletuggboots.us.com
 +
http://www.boots-ugg.us.com
 +
http://www.guccioutlets.us.org
 +
http://www.katespade-outlet.us
 +
http://www.uggsoutletofficial.us.com
 +
http://www.lebronjamesshoes.org
 +
http://www.cheapraybansunglasses.name
 +
http://www.coach-outletonline.eu.com
 +
http://www.true-religionjeansoutlet.us.com
 +
http://www.ugg-sale.org.uk
 +
http://www.birkenstocksandals.org.uk
 +
http://www.ysl-outlet.com
 +
http://www.outletlouisvuitton.us.com
 +
http://www.cheapnhljerseyswholesale.us
 +
http://www.true-religionjeansoutlet.in.net
 +
http://www.cheaprolexreplicawatches.us
 +
http://www.michael-korsoutlet.us.com
 +
http://www.nikestoreuk.me.uk
 +
http://www.louboutin.eu.com
 +
http://www.michaelkorsoutletonline.com.co
 +
http://www.levisjeans.name
 +
http://www.cheapuggsale.us.com
 +
http://www.toms.in.net
 +
http://www.cheapjordan-shoes.in.net
 +
http://www.moncleroutletjackets.us
 +
http://www.coachfactoryoutletsaleonline.us.com
 +
http://www.canadagoosejacketscanada.us.com
 +
http://www.ferragamoshoes.cc
 +
http://www.pandorajewelryoutlet.name
 +
http://www.hollisterclothingstore.com.co
 +
http://www.airforce1-nike.fr
 +
http://www.ralphlaurenoutlet.us.org
 +
http://www.ralphlauren-outlet.com.co
 +
http://www.pradaoutlet.name
 +
http://www.discountnikeshoessc.org
 +
http://www.truereligionjeans.me.uk
 +
http://www.monclerjackets-uk.co.uk
 +
http://www.christianlouboutinshoes.org.uk
 +
http://www.christianlouboutinoutlet.us
 +
http://www.raybansunglasses.net.co
 +
http://www.canadagoosepaschere.fr
 +
http://www.airjordanretro.us
 +
http://www.michaelkorshandbags-outlet.us.org
 +
http://www.adidasoutlet.us.com
 +
http://www.michaelkors-outlet.us.org
 +
http://www.omegawatches.name

Revision as of 09:06, 20 December 2016

20161220meiqing http://www.michaelkorsoutlet-online.org http://www.yeezyboost350.me.uk http://www.adidas-nmd.us.com http://www.cheapoakleyssunglasses.us.org http://www.michaelkorsoutletonlineclearance.us.com http://www.thenorthfaceoutlet.com.co http://www.chaussurelouboutin-pascher.fr http://www.buyredbottomcheapshoesonline.com http://www.airmax90.org http://www.truereligionoutlet.com.co http://www.coach-outletonlines.us.com http://www.uggs-australia.it http://www.moncleroutlet.in.net http://www.longchampbags.uk http://www.dolceandgabbanaoutlet.com http://www.michael-korsoutlet.ca http://www.doudounemonclerpascher.fr http://www.longchamphandbags.us http://www.timberlandbootsoutlet.us http://www.armani-exchange.us http://www.uggaustraliaoutlet.us.com http://www.jimmychoo.in.net http://www.chaussure-louboutin.fr http://www.puma-shoes.in.net http://www.uggscheap.us.com http://www.monclerjacketsuk.org.uk http://www.cheap-ugg-boots.us.com http://www.nikefreeflyknit.name http://www.cheap-nbajerseys.us.com http://www.nikefreerun.name http://www.louisvuittonhandbagsuk.me.uk http://www.pandora-charms.me.uk http://www.redbottomshoes.in.net http://www.edhardyukclothing.me.uk http://www.canadagooseoutlets.us.com http://www.truereligionjeansoutlet.name http://www.hermesbeltoutlet.us http://www.adidasnmd.org.uk http://www.abercrombieandfitch.in.net http://www.polooutlet.com.co http://www.canadagooseoutlet.ca http://www.cheap-jerseyswholesale.us http://www.uggs-pas-cher.fr http://www.uggscanada.ca http://www.adidas-shoes.us.com http://www.katespadehandbags.net.co http://www.michaelkors-handbags.uk http://www.cheapmlbjerseys.us http://www.rolexdaytona.in.net http://www.polooutlets.us.com http://www.cheap-jordans.us http://www.nfl-jerseys-wholesale.us.com http://www.pandorajewelryoutlet.org http://www.true-religion.us.com http://www.cheap-uggs.us.com http://www.longchampbagsuk.org.uk http://www.oakley--sunglasses.us.org http://www.ugg-australia.org.uk http://www.hollistersaleuk.me.uk http://www.canadagooseoutlet.net.co http://www.pandorauk.org.uk http://www.christianlouboutinshoes.us.org http://www.poloralphlauren-outlet.co.uk http://www.chiflatiron.in.net http://www.valentino.in.net http://www.tomsoutletstores.in.net http://www.rolex-replicawatches.com.co http://www.coachoutletus.us.com http://www.skechersshoes.us http://www.michaelkors-handbags.us.org http://www.michaelkorsoutletclearances.us.com http://www.louisvuittonoutlet.ca http://www.ugg-bootsoutlet.co.uk http://www.oakley--sunglasses.net.co http://shop.uggmalls.uk http://www.uggsboots.org.uk http://www.pandoracharmssaleclearance.com http://www.coachoutlet.in.net http://www.cheapnfljerseys-wholesale.us http://www.cheapuggsoutlets.us.com http://www.adidas-shoes.me.uk http://www.raybans.org.uk http://www.kobeshoes.name http://www.christianlouboutin.us.org http://www.michael-korshandbags.us.com http://www.oakleysunglassesoutlet.in.net http://www.coachoutletonlinecoachfactoryoutlet.us.com http://www.fitflops.in.net http://www.birkenstocks.us.com http://www.airjordan-uk.org.uk http://www.designerhandbags.net.co http://www.moncler-outlet.us.com http://www.thenorthface.org.uk http://www.rolexreplicawatches.name http://www.red-bottoms.us.com http://www.longchamp-handbags.us http://www.cheapjordans.us.com http://www.bottegaveneta.in.net http://www.christianlouboutinshoesoutlet.com http://www.cheapjordans.com.co http://www.coachoutletstoreonlineclearances.org http://www.coachpursesoutlet.in.net http://www.coach-outlets.us.com http://www.lacosteshoes.us http://www.pandoracharms.com.co http://www.louisvuitton-outlet-online.us.com http://www.discountoakleysunglasses.com.co http://www.uggsaustralia.fr http://www.nikecortez.com.co http://www.michaelkorspurses.in.net http://www.canadagoose-outlet.name http://www.versaceshoes.in.net http://www.nikehuarache.com.co http://www.raybansunglassesdiscount.com.co http://www.louis-vuitton-handbags.us.org http://www.tomsshoes.us.com http://www.christianlouboutinshoes.us http://www.canada-goosejackets.org.uk http://www.adidasyeezyshoes.us.com http://www.hugobossoutlet.name http://www.fitflopssaleclearance.net http://www.louisvuittonoutletus.us.com http://www.cheapoakleyssunglasses.com.co http://www.conversetrainer.co.uk http://www.coachfactory-outletstore.us.com http://www.christianlouboutinoutletsale.org http://www.cheapjordanshoes.us.com http://www.outletlongchamp.us http://www.fitflops.us http://www.nike-blazerlow.fr http://www.vansshoes.in.net http://www.cheapbasketballshoes.us http://www.coach--outlet.us.com http://www.katespadehandbags.org.uk http://www.michaelkorsoutletonlineclearance.in.net http://www.cheapraybans.com.co http://www.toryburchoutletstores.in.net http://www.uggs--canada.ca http://www.edhardy-outlet.name http://www.eccoshoes.us http://www.hermesbirkin.in.net http://www.coachfactoryonlineoutlet.com.co http://www.louisvuitton-sac-pascher.fr http://www.uggsale.us.com http://www.fake-rolex.us http://www.kevindurantshoes.us http://www.coachoutlets.us.org http://www.canadagoosejacketscanadagooseoutlet.us.com http://www.nike-store.us.com http://www.michaelkors-outletsale.us.com http://www.adadassuperstar.com http://www.adadassupercolor.com http://www.burberry-outlet-canada.ca http://www.longchampoutletstore.com http://www.michaelkorshandbag.us.com http://www.michaelkors-outlet.us.com http://www.uggsboots.fr http://www.fitflopssaleclearance.com http://www.nikeshoes.us.com http://www.reebokshoes.in.net http://www.guccihandbagsoutlet.us http://www.ralph-lauren-pas-cher.fr http://www.supraforsale.in.net http://www.cheapuggs.org.uk http://www.canadagoosejacketsuk.co.uk http://www.michaelkorsoutletclearance.in.net http://www.michaelkors-handbags.us.com http://www.birkenstocksandals.name http://www.kate-spadeoutlet.in.net http://www.cheapjordans-shoes.us.com http://www.abercrombieandfitchoutlet.name http://www.pandora-bracelet.us http://www.celineoutlet.us http://www.wwwlouisvuittonoutlet.us.com http://www.yeezyboost.us.com http://www.adidasnmd.us.org http://www.michaelkors-outlet.ca http://www.converseshoes.in.net http://www.michaelkorsoutletstore.us.com http://www.coachoutletstoreonlineclearances.in.net http://www.rolexwatchesuk.me.uk http://www.niketrainers.com.co http://www.raybans.us.com http://www.hollisterclothing.org http://www.michaelkors-purses.us.com http://www.michaelkorshandbagsuk.me.uk http://www.coachoutletstoreonline.com.co http://www.timberlandbootsoutlet.name http://www.coachfactoryoutlet-online.in.net http://www.oakley.nom.co http://www.canadagooseuk.co.uk http://www.uggboots-outlets.us.com http://www.polooutlet.in.net http://www.airmaxoutletsaleus.com http://www.nike-airmax90.me.uk http://www.louisvuitton-borse.it http://www.coach-outletonline.us.org http://www.adadasstansmith.com http://www.rayban-eyeglasses.us.com http://www.yeezyboost-350.us.com http://www.ugg--outlet.us.com http://www.canada-goose-jackets.ca http://www.coachfactoryoutletonline.in.net http://www.gucci--borse.it http://www.michaelkorsoutletclearance.net.co http://www.nike-tn-pascher.fr http://www.jordan-femmepascher.fr http://www.outletuggboots.us.com http://www.boots-ugg.us.com http://www.guccioutlets.us.org http://www.katespade-outlet.us http://www.uggsoutletofficial.us.com http://www.lebronjamesshoes.org http://www.cheapraybansunglasses.name http://www.coach-outletonline.eu.com http://www.true-religionjeansoutlet.us.com http://www.ugg-sale.org.uk http://www.birkenstocksandals.org.uk http://www.ysl-outlet.com http://www.outletlouisvuitton.us.com http://www.cheapnhljerseyswholesale.us http://www.true-religionjeansoutlet.in.net http://www.cheaprolexreplicawatches.us http://www.michael-korsoutlet.us.com http://www.nikestoreuk.me.uk http://www.louboutin.eu.com http://www.michaelkorsoutletonline.com.co http://www.levisjeans.name http://www.cheapuggsale.us.com http://www.toms.in.net http://www.cheapjordan-shoes.in.net http://www.moncleroutletjackets.us http://www.coachfactoryoutletsaleonline.us.com http://www.canadagoosejacketscanada.us.com http://www.ferragamoshoes.cc http://www.pandorajewelryoutlet.name http://www.hollisterclothingstore.com.co http://www.airforce1-nike.fr http://www.ralphlaurenoutlet.us.org http://www.ralphlauren-outlet.com.co http://www.pradaoutlet.name http://www.discountnikeshoessc.org http://www.truereligionjeans.me.uk http://www.monclerjackets-uk.co.uk http://www.christianlouboutinshoes.org.uk http://www.christianlouboutinoutlet.us http://www.raybansunglasses.net.co http://www.canadagoosepaschere.fr http://www.airjordanretro.us http://www.michaelkorshandbags-outlet.us.org http://www.adidasoutlet.us.com http://www.michaelkors-outlet.us.org http://www.omegawatches.name