mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 04:32:51 +01:00
Fediverse: run Black.
This commit is contained in:
parent
e9ff57a1c9
commit
d5e241cb0c
@ -51,9 +51,17 @@ def configure(advanced):
|
|||||||
|
|
||||||
|
|
||||||
Fediverse = conf.registerPlugin("Fediverse")
|
Fediverse = conf.registerPlugin("Fediverse")
|
||||||
conf.registerChannelValue(Fediverse, 'usernameSnarfer',
|
conf.registerChannelValue(
|
||||||
registry.Boolean(False, _("""Determines whether the bot will output the
|
Fediverse,
|
||||||
profile of @username@hostname accounts it sees in channel messages.""")))
|
"usernameSnarfer",
|
||||||
|
registry.Boolean(
|
||||||
|
False,
|
||||||
|
_(
|
||||||
|
"""Determines whether the bot will output the
|
||||||
|
profile of @username@hostname accounts it sees in channel messages."""
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
||||||
|
@ -117,7 +117,7 @@ class Fediverse(callbacks.PluginRegexp):
|
|||||||
"""Fetches information from ActivityPub servers."""
|
"""Fetches information from ActivityPub servers."""
|
||||||
|
|
||||||
threaded = True
|
threaded = True
|
||||||
regexps = ['usernameSnarfer']
|
regexps = ["usernameSnarfer"]
|
||||||
|
|
||||||
def __init__(self, irc):
|
def __init__(self, irc):
|
||||||
super().__init__(irc)
|
super().__init__(irc)
|
||||||
@ -201,6 +201,7 @@ class Fediverse(callbacks.PluginRegexp):
|
|||||||
utils.web.htmlToText(actor["summary"]),
|
utils.web.htmlToText(actor["summary"]),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
usernameSnarfer.__doc__ = _username_regexp.pattern
|
usernameSnarfer.__doc__ = _username_regexp.pattern
|
||||||
|
|
||||||
@wrap(["somethingWithoutSpaces"])
|
@wrap(["somethingWithoutSpaces"])
|
||||||
|
Loading…
Reference in New Issue
Block a user