diff --git a/EnsoBot.py b/EnsoBot.py index ef46bb90..5051db20 100644 --- a/EnsoBot.py +++ b/EnsoBot.py @@ -1,6 +1,8 @@ import discord import random from discord.ext import commands +from discord.ext.commands import BucketType, cooldown + # Bot Prefix client = commands.Bot(command_prefix='~') @@ -82,6 +84,7 @@ async def roles(ctx): #Bot ~Kakashi command for Zara @client.command(aliases=['kakashi']) +@cooldown(1, 5, BucketType.channel) async def Kakashi(ctx): kakashi1 = "https://cdn.discordapp.com/attachments/714671068941647933/717201077346238514/image0.jpg" kakashi2 = "https://cdn.discordapp.com/attachments/714671068941647933/717201077669331036/image1.jpg" diff --git a/venv/Lib/site-packages/discord/ext/commands/__pycache__/bot.cpython-36.pyc b/venv/Lib/site-packages/discord/ext/commands/__pycache__/bot.cpython-36.pyc index de74663a..05f31866 100644 Binary files a/venv/Lib/site-packages/discord/ext/commands/__pycache__/bot.cpython-36.pyc and b/venv/Lib/site-packages/discord/ext/commands/__pycache__/bot.cpython-36.pyc differ diff --git a/venv/Lib/site-packages/discord/ext/commands/bot.py b/venv/Lib/site-packages/discord/ext/commands/bot.py index 9280136d..0833b20a 100644 --- a/venv/Lib/site-packages/discord/ext/commands/bot.py +++ b/venv/Lib/site-packages/discord/ext/commands/bot.py @@ -999,6 +999,7 @@ class Bot(BotBase, discord.Client): """ pass + class AutoShardedBot(BotBase, discord.AutoShardedClient): """This is similar to :class:`.Bot` except that it is inherited from :class:`discord.AutoShardedClient` instead.