Skip to content

Latest commit

 

History

History
106 lines (77 loc) · 2.09 KB

ReadMe.md

File metadata and controls

106 lines (77 loc) · 2.09 KB

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'