mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-26 02:10:39 +01:00
core: half the default throttle time (from 0.01 to 0.005)
This commit is contained in:
parent
029bb38af8
commit
ae6c68018b
@ -178,7 +178,7 @@ class Irc(utils.DeprecatedAttributesObject):
|
|||||||
if self.queue: # Only process if there's data.
|
if self.queue: # Only process if there's data.
|
||||||
data = self.queue.popleft()
|
data = self.queue.popleft()
|
||||||
self._send(data)
|
self._send(data)
|
||||||
throttle_time = self.serverdata.get('throttle_time', 0.01)
|
throttle_time = self.serverdata.get('throttle_time', 0.005)
|
||||||
self.aborted.wait(throttle_time)
|
self.aborted.wait(throttle_time)
|
||||||
log.debug('(%s) Stopping queue thread as aborted is set', self.name)
|
log.debug('(%s) Stopping queue thread as aborted is set', self.name)
|
||||||
|
|
||||||
|
@ -372,7 +372,7 @@ servers:
|
|||||||
|
|
||||||
# Message throttling: when set to a non-zero value, only one message will be sent every X
|
# Message throttling: when set to a non-zero value, only one message will be sent every X
|
||||||
# seconds. If your bot is constantly running into Excess Flood errors, raising this to
|
# seconds. If your bot is constantly running into Excess Flood errors, raising this to
|
||||||
# something like 0.5 or 1.0 should help. Defaults to 0.01 if not set.
|
# something like 0.5 or 1.0 should help. Defaults to 0.005 if not set.
|
||||||
throttle_time: 0.3
|
throttle_time: 0.3
|
||||||
|
|
||||||
# Clientbot also supports auto perform, using raw IRC messages.
|
# Clientbot also supports auto perform, using raw IRC messages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user