Skip to content

This ZNC module provides support for logging IRC chat messages into a MySQL database

License

Notifications You must be signed in to change notification settings

dwbfox/znc2mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

znc2mysql

This ZNC module provides support for logging messages into a MySQL database. It is currently in its early stages, with no support to generate the required database schema and requires manual configuration of the database information.

znc2mysql

Requirements

This module requires:

Installation

Set up the database

Create a new MySQL database, and run the included schema (located in src/db.sql) to create the required tables. In example,

mysql -u root -p yourdb < db.sql

Configure database connection settings

open znc2mysql.py and edit the following to reflect your database settings:

    self.connection = pymysql.connect(
        host='localhost',
        user='root',
        password='root',
        db='irc',
        cursorclass=pymysql.cursors.DictCursor
    )

Install the module

Move znc2mysql.py to your znc modules folder (typically ~/.znc/modules)

Load the module in znc

loadmod znc2mysql

About

This ZNC module provides support for logging IRC chat messages into a MySQL database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages