Send a random (humorous) notice to a user entering an IRC channel.
-
Enable in channel(s):
-
config channel #channel plugins.onjoin.enable True or False(On or Off) -
config plugins.onjoin.maxQuotes 1000to retain at most the newest stored quotes -
config plugins.onjoin.maxRecentQuotes 10to cap how many quotesrecentquotesmay show
From your Limnoria plugins directory (for example, ~/runbot/plugins):
git clone https://github.com/Alcheri/OnJoin.git
Load the plugin:
/msg yourbot load OnJoin
addquote <text>appends a quote to the shared quotes file. This requires the botadmincapability.recentquotes [count]shows the newest stored quotes, up to the configured maximum, with quote numbers you can use for deletion. This also requires the botadmincapability.delquote <quote_number>deletes a stored quote by itsrecentquotesnumber. This also requires the botadmincapability.
- In Python 3 files, do not add
# -*- coding: utf-8 -*-unless a non-default source encoding is required. - Use
#!/usr/bin/env python3only for executable scripts, not import-only modules.