#Parallel processing - bot

1 messages · Page 1 of 1 (latest)

celest temple
#

How can we run a continuous custom functions parallelly on all the servers the bot is in.

Currently I'm using on ready and going over one by one server which makes the bot slower , mainly when the number of members and server count increases.

low lotus
#

if its ran routinely then the tasks extension will do the trick, otherwise schedule it as a task in the bot's event loop

#

note: this assumes said function is asynchronous

#

fyi on_ready can fire multiple times so its suggested you avoid doing things in there

celest temple