Skip to content

Commit 0022c31

Browse files
committed
sharedcd cog, tested and working (80%)
1 parent 0887865 commit 0022c31

File tree

5 files changed

+984
-0
lines changed

5 files changed

+984
-0
lines changed

sharedcd/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from .main import SharedCooldowns
2+
from pathlib import Path
3+
import json
4+
5+
with open(Path(__file__).parent / "info.json") as fp:
6+
__red_end_user_data_statement__ = json.load(fp)["end_user_data_statement"]
7+
8+
9+
async def setup(bot):
10+
await bot.add_cog(SharedCooldowns(bot))

sharedcd/info.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "SharedCooldowns",
3+
"short": "Shared cooldowns for commands.",
4+
"description": "Create shared cooldowns for commands across multiple cogs.",
5+
"end_user_data_statement": "This cog does not store any user data.",
6+
"install_msg": "Thanks for installing SharedCooldowns. Load the cog with `[p]load sharedcd` and see all its commands with `[p]help SharedCooldowns`",
7+
"author": [
8+
"crayyy_zee"
9+
],
10+
"requirements": [],
11+
"required_cogs": {},
12+
"tags": [
13+
"cooldown",
14+
"custom",
15+
"restrict",
16+
"delay",
17+
"block"
18+
],
19+
"type": "COG"
20+
}

0 commit comments

Comments
 (0)