Reverting back to no channel restrictions

testing
sgoudham 5 years ago
parent 656b4558d0
commit 22e6ad1bc3

@ -1,6 +1,5 @@
import discord
import asyncio
import sys
import random
from discord.ext import commands
from discord.ext.commands import BucketType, cooldown
@ -16,10 +15,10 @@ async def on_ready():
await client.change_presence(activity=discord.Game(name='Reading Yaoi'))
@client.command(aliases=["Hug"])
@commands.has_any_role('Hamothy')
async def hug(self, ctx):
await self.bot.say("hugs {}".format(ctx.message.author.mention()))
#@client.command(aliases=["Hug"])
#@commands.has_any_role('Hamothy')
#async def bruh(self, ctx):
# await self.bot.say("hugs {}".format(ctx.message.author.mention()))
# Bot ~Ping command in milliseconds
@ -102,9 +101,8 @@ async def roles(ctx):
# Bot ~Kakashi command for Zara
@client.command(aliases=['Kakashi'])
@cooldown(1, 10, BucketType.channel)
@cooldown(1, 5, BucketType.channel)
async def kakashi(ctx):
if ctx.get_channel("669812887564320769"):
kakashi1 = "https://cdn.discordapp.com/attachments/714671068941647933/717201077346238514/image0.jpg"
kakashi2 = "https://cdn.discordapp.com/attachments/714671068941647933/717201077669331036/image1.jpg"
kakashi3 = "https://cdn.discordapp.com/attachments/714671068941647933/717201077941829722/image2.jpg"
@ -157,13 +155,6 @@ async def kakashi(ctx):
embed = discord.Embed(title="```Random Kakashi Image```", colour=discord.Colour(0xff0000), )
embed.set_image(url=random.choice(kakashiArray))
await ctx.send(embed=embed)
else:
await ctx.send('Sorry, I only work in Bot Commands!')
@client.event
async def error():
channel = client.get_channel(669812887564320769)
# Bot Event for handling cooldown error

Loading…
Cancel
Save