Giter Club home page Giter Club logo

pyquassel's Introduction

PyQuassel

Pure python 3 implementation of QuasselClient. Doesn't depend on any PySide/PyQt libraries.

Based on:

Setup

Install

git clone https://github.com/Zren/PyQuassel.git
cd PyQuassel

Create config.py

host = 'localhost'
port = 4242
username = 'AdminUser'
password = 'PASSWORD'

Run

python quasselbot.py

Update

git pull origin master

Plugins

Enable a plugin by adding it's name in config.py.

enabledPlugins = [
    'chatlog',
    'pushbullet',
]

chatlog

Prints chat messages to the console.

pushbullet

Recieve push notifications for specific keywords or from query buffers. Current nick/highlight support not yet available.

config.py

"""
For push notifications, you'll need an Access Token which
can gotten from your account settings.
https://www.pushbullet.com/#settings/account
"""
pushbulletAccessToken = 'asd78f69sd876f765dsf78s5da7f5as7df8a58s7dfADS'
"""
To push to all decives, push set as None.
To push to a specific device, enter the device name.
https://www.pushbullet.com/#settings/devices 
"""
pushbulletDeviceName = None
# pushbulletDeviceName = 'Motorola XT1034'

pushIfKeyword = [ # Case Insensitive
    'Zren',
    'Shadeness',
    'Pushbullet',
]

webapp

A very simple webserver to glance at recent messages. When enabled, the bot uses a total ~30 Mb of RAM.

config.py

"""
Webapp to read the last 50 messages in all channels.
The pushbullet plugin will send links to the webapp if enabled.
"""
webappPort = 3000
webappServerName = 'localhost'

# The session key is used instead of username/password to view the webapp.
# If left blank, a new key is generated each run.
# Generate a good key with: python -c "import os; print(os.urandom(24))"
# webappSessionKey = ''
webappSessionKey =  b'hN\xe7\xfd\x95[\xc0\xdfH\x96\xe4W\xaf\xad\xe2\x12#\xcfu\x92\x1eZ<\xf9'

pyquassel's People

Contributors

ecmaxp avatar zren avatar

Watchers

 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.