Reverting back to no channel restrictions

testing
sgoudham 5 years ago
parent 656b4558d0
commit 22e6ad1bc3

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

Loading…
Cancel
Save