diff --git a/README.md b/README.md index daf2162..0e8fd9c 100644 --- a/README.md +++ b/README.md @@ -25,38 +25,79 @@ Then `@load ChanTracker`. ## Commands ## - @b,e,i,q [] [,] [y] [w] [d] [h] [m] [s] [<-1> or empty means forever] ) -- +mode targets for duration is mandatory - @ub,ue,ui,uq [] []) -- sets -mode on them, if * found, remove them all - @check [] returns list of users who will be affected by such pattern - @edit [,] [y] [w] [d] [h] [m] [s] [<-1>] means forever) -- change expiration of some active modes - @info returns information about a mode change - @affect returns affected users by a mode placed - @mark [,] add a comment about a mode change - @editandmark [,] [y] [w] [d] [h] [m] [s] [<-1>] [] edit duration and add comment on a mode change - @pending [] (pending [--mode=] [--oper=] [--never] [] ) -- returns active items for --mode if given, filtered by --oper if given, --never never expire only if given - @query [--deep] [--never] [--active] [--channel=] ) -- search inside ban database, --deep to search on log, --never returns items set forever and active, --active returns only active modes, --channel reduces results to a specific channel - @match [] returns list of modes that affects the nick,hostmask given - @detail returns log from a mode change - @r [] [] do a force part on in with if provided - @modes [] Sets the mode in to , sending the arguments given, bot will ask for op if needed. - @summary [] returns some stats about - @addpattern [] (qbeId) [y] [w] [d] [h] [m] [s] ) add a which triggers for if the appears more than (0 for immediate action) during in seconds - @addregexpattern [] (qbeId) [y] [w] [d] [h] [m] [s] //) add a which triggers for if the appears more than (0 for immediate action) during in seconds - @rmpattern [] [,] remove patterns - @lspattern [] [] return patterns in filtered by optional or - @addtmp [] add temporary pattern which follows repeat punishments - @rmtmp [] remove temporary patterns if any + @b,q,e,i [] [--perm] [,] [y] [w] [d] [h] [m] [s] + + targets for duration; is mandatory, <-1> or empty means forever, + add --perm if you want to add it to permanent bans of channel + @ub,uq,ue,ui [] [] -- sets - on them; if * is given, remove them all + @k,r [] [] -- kick or force-part with if provided + @edit [,] [y] [w] [d] [h] [m] [s] + change expiry of an active mode change; <-1s> means forever, <0s> means remove + @mark [,] -- add comment on a mode change + @editandmark [,] [y] [w] [d] [h] [m] [s] [] + change expiry and mark of an active mode change; if you got this message while the bot + prompted you, your changes were not saved; <-1s> means forever, <0s> means remove + @info -- summary of a mode change + @detail -- logs of a mode change + @check [] -- returns a list of users affected by a pattern + @affect -- list users affected by a mode change + @match [] + returns active modes that affect the given target; nick must be in a channel shared with the bot + @query [--deep] [--never] [--active] [--ids] [--channel=] + search in tracking database; --deep to search in logs, --never returns items set forever and active, + --active returns only active modes, --ids returns only ids, --channel limits results to the specified channel + @pending [] [--mode=] [--oper=] [--never] [--ids] [--count] [--flood] [--duration [y] [w] [d] [h] [m] [s]] + returns active items for --mode, filtered by --oper, --never (never expire), --ids (only ids), + --duration (item longer than), --count returns the total, --flood one message per mode + @modes [] [y] [w] [d] [h] [m] [s] [ ...] + sets the mode in to , sending the arguments given; is only + necessary if the message isn't sent in the channel itself, is optional + @ops [] -- triggers ops in the operators channel + @summary [] -- returns various statistics about channel activity + @weblink -- provides link to web interface - @cflood [] [] [] [] [] return channel's config or apply (bqeIkrdD) for (in seconds) if a user sends more than (-1 to disable) messages during (in seconds) - @crepeat [] [] [] [] [] [] [] [] [] [] return channel's config or apply (bqeIkrdD) for (in seconds) if (-1 to disable) repetitions are found during (in seconds); it will create a temporary lethal pattern with a mininum of (-1 to disable pattern creation); is a float between 0 and 1 - @chl [] [] [] [] return channel's config or apply (bqeIkrdD) during (in seconds) if (-1 to disable) channel nicks are found in a message - @cnotice [] [] [] [] [] return channel's config or apply (bqeIkrdD) for (in seconds) if (-1 to disable) messages are channel notices during (in seconds) - @ccycle [] [] [] [] [] return channel's config or apply (bqeIkrdD) for (in seconds) if (-1 to disable) parts/quits are received by a host during (in seconds) - @cclone [] [] [] [] return channel's config or apply (bqeIkrdD) for (in seconds) if (-1 to disable) users with the same host join the channel - @cnick [] [] [] [] [] return channel's config or apply (bqeIkrdD) during (in seconds) if a user changes nick (-1 to disable) times during (in seconds) - @ccap [] [] [] [] [] [] return channel's config or apply (bqeIkrdD) for (in seconds) if (-1 to disable) messages during (in seconds) contain more than (float between 0-1) uppercase chars - @cbad [] [] [] [] [] return channel's config or apply (bqeIkrdD) for (in seconds) if a user triggers (-1 to disable) channel protections during (in seconds) - @cautoexpire [] [] return channel's config or auto remove new elements after (-1 to disable, in seconds) + @addpattern [] (bqeIkrd) [y] [w] [d] [h] [m] [s] + add a which triggers for if the appears + more often than (0 for immediate action) during in seconds + @addregexpattern [] (bqeIkrd) [y] [w] [d] [h] [m] [s] // + add a which triggers for if the appears + more often than (0 for immediate action) during in seconds + @rmpattern [] [,] -- remove patterns by + @lspattern [] [] -- return patterns in filtered by optional or + @addtmp [] -- add temporary pattern, which follows repeat punishments + @rmtmp [] -- remove temporary patterns if any + + @cflood [] [] [] [] [] + return channel's config or apply (bqeIkrdD) for (in seconds) + if a user sends more than (-1 to disable) messages during (in seconds) + @crepeat [] [] [] [] [] [] [] [] [] [] + return channel's config or apply (bqeIkrdD) for (in seconds) + if (-1 to disable) repetitions are found during (in seconds); + it will create a temporary lethal pattern with a mininum of + (-1 to disable pattern creation); is a float between 0 and 1 + @chl [] [] [] [] + return channel's config or apply (bqeIkrdD) during (in seconds) + if (-1 to disable) channel nicks are found in a message + @cnotice [] [] [] [] [] + return channel's config or apply (bqeIkrdD) for (in seconds) + if (-1 to disable) messages are channel notices during (in seconds) + @ccycle [] [] [] [] [] + return channel's config or apply (bqeIkrdD) for (in seconds) + if (-1 to disable) parts/quits are received by a host during (in seconds) + @cclone [] [] [] [] + return channel's config or apply (bqeIkrdD) for (in seconds) + if (-1 to disable) users with the same host join the channel + @cnick [] [] [] [] [] + return channel's config or apply (bqeIkrdD) during (in seconds) + if a user changes nick (-1 to disable) times during (in seconds) + @ccap [] [] [] [] [] [] + return channel's config or apply (bqeIkrdD) for (in seconds) + if (-1 to disable) messages during (in seconds) + contain more than (float between 0-1) uppercase chars + @cbad [] [] [] [] [] + return channel's config or apply (bqeIkrdD) for (in seconds) + if a user triggers (-1 to disable) channel protections during (in seconds) + @cautoexpire [] [] + return channel's config or auto remove new elements after (-1 to disable, in seconds) ## General Usage ## diff --git a/plugin.py b/plugin.py index 1c92af4..7a23ab8 100644 --- a/plugin.py +++ b/plugin.py @@ -1844,8 +1844,7 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler): sets the mode in to , sending the arguments given; is only necessary if the message isn't sent in the channel - itself, is optional - """ + itself, is optional""" def f(L): return ircmsgs.modes(channel, L) def la():