Skip to main content

irctk-bot

Bot framework for irctk. irctk-bot can be installed from PyPI.

Usage:

$ irctk-bot -h irc.example.com -m irctk_bot.modules.ping

Where module is the Python module name to any modules you wish to load, you may provide -m multiple times.

Alternatively, you may use a config file, see example.toml.

$ irctk-bot -c example.toml

Writing a module

Expose an instance of the Module class as a global module property to a Python module. Use the Module.command decorator to register commands.

from irctk_bot import Context, Module

module = Module()

@module.command()
def ping(context: Context, name: Optional[str] = None) -> None:
    if name:
        return context.reply(f'pong {name}')
    context.reply('pong')

Metadata

Release files for irctk-bot 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for irctk-bot 0.2.2
File Size Uploaded
irctk_bot-0.2.2.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for irctk-bot 0.2.2
File Interpreter ABI Platform
irctk_bot-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.0 kB

Release files / irctk_bot-0.2.2.tar.gz

Download URL irctk_bot-0.2.2.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d882edc6e41430900d6ff75b89c2ee986d3e2a7d9fb4211d3806b7e67f08f02b
BLAKE2b-256 checksum
How to use checksums
9f3aa9c7fe25f01cdf457720ab8c7094af0c9a24043521008b6b389276cc5f5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Linux/6.6.63

Release files / irctk_bot-0.2.2-py3-none-any.whl

Download URL irctk_bot-0.2.2-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f7c1eb0d637be20a0be4b0ce6ec0a87e6f25793f55534c42b8c01186af4c53b
BLAKE2b-256 checksum
How to use checksums
ae2eb240a33449f52b6bb076cc99ad13c1b37614dc2291e6ea72f028325a7d23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Linux/6.6.63

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page