Giter VIP home page Giter VIP logo

rezeptionistin's Introduction

Rezeptionistin

Der freundliche IRC Bot für #k4cg

Features

Erzaehl mir doch was du brauchst, mein Junge.
Ich kann bisher:
!gt - Guten Tag wuenschen.
!offen - Aktuelle Geraete in der K4CG anzeigen
fragen beantworten in Form: <soll/kann/darf/muss> ich * [<oder> *]
!schmeichle <nick> - Jemandem ein Kompliment machen.
!beleidige <nick> - Jemanden beleidigen.
!security - Aktuelle Sicherheitsprobleme im Internetz
!lang - Ändern die Sprache
!lineart - Zeige eine lineart
Mich beim freenode NickServ authentifizieren.
!offen - Aktuelle Geraete in der K4CG anzeigen lassen
!np - Dir sagen welche Musik so laeuft.
!sage <nick> <nachricht> - Einem Benutzer eine Nachricht ausrichten wenn er das naechste mal auftaucht.
!kt - Zeige aktuelle Temperatur in der K4CG.

Installation

git clone https://github.com/k4cg/Rezeptionistin

Nach dem Klonen müssen die Abhängigkeiten installiert, und eine config.ini Datei angelegt werden.

cd rezeptionistin
pip install -r requirements.txt
cp config.ini.example config.ini

config.ini muss vor der Benutzung angepasst werden

Benutzung

./rezeptionistin.py

Konfiguration

Es wird automatisch die config.ini im gleichen Verzeichnis gelesen.

[IRC]
server = irc.freenode.net
port = 6667
nick = Rezeptionistin
ircchan = #k4cg
debugchan = #k4cgdebug

[HTTP]
useragent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3

[MediaWiki]
wikiapiurl = https://k4cg.org/api.php
user = Rezeptionistin
password = passw0rd

[SpaceStatus]
url = http://[2001:dead:beef::1]:80/status.json

[Language]
language = de

[Temperature]
wunderground = http://api.wunderground.com/api/a5744ceb15b96090/conditions/q/pws:INUREMBE2.json

[Sentences]
satzgenerator = on
markov = on
markovfile = /usr/local/rezeptionistin/corpus.txt

Language

Optionen für Sprache: "de" oder "en"

Ignore

List of users to ignore. Separated by comma.

user1,user2

Sentences

Wenn man den Bot im Chat mit "Rezeptionistin" anspricht, wird das Sentences Plugin getriggered. Dieses Antwortet mit einem zufaellgiem Satz darauf.

Dieser Satz kann aus zwei Quellen kommen. Entweder markov oder satzgenerator. Satzgenerator ist eine Site im Netz die man per API anfragen kann. Der Markov Teil nutzt den Markov-Chain Algo und einen Corpus den man vorher angeben muss.

Wenn beide (satzgenerator und markov) angeschaltet sind, wird eine zufaellige Quelle ausgewaehlt.

rezeptionistin's People

Contributors

c0rby avatar dnnr avatar gammenion avatar gpunktschmitz avatar mojoaxel avatar noqqe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.