Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit d84e3da

Browse files
committed
feat: cluster example
1 parent 75e4a3c commit d84e3da

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/cluster.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pycord
2+
3+
bot = pycord.Bot(intents=pycord.Intents.all(), shards=6)
4+
5+
6+
@bot.listen('on_guild_create')
7+
async def on_ready(guild: pycord.Guild) -> None:
8+
print(f' In Guild: {guild.name}')
9+
10+
11+
bot.cluster('token', 2)

0 commit comments

Comments
 (0)