|
|
@ -7,7 +7,6 @@ from discord.ext import commands
|
|
|
|
from discord.ext.commands import BucketType, cooldown
|
|
|
|
from discord.ext.commands import BucketType, cooldown
|
|
|
|
|
|
|
|
|
|
|
|
import config
|
|
|
|
import config
|
|
|
|
from EnsoBot import error_function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
colour_list = [c for c in config.colors.values()]
|
|
|
|
colour_list = [c for c in config.colors.values()]
|
|
|
|
channels = ["enso-chan-commands", 'general']
|
|
|
|
channels = ["enso-chan-commands", 'general']
|
|
|
@ -154,5 +153,10 @@ class Embeds(commands.Cog):
|
|
|
|
print(e)
|
|
|
|
print(e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Error handling function to make sure that the commands only work in enso-chan-commands
|
|
|
|
|
|
|
|
def error_function():
|
|
|
|
|
|
|
|
return "Sorry! I only work in #enso-chan-commands!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def setup(bot):
|
|
|
|
def setup(bot):
|
|
|
|
bot.add_cog(Embeds(bot))
|
|
|
|
bot.add_cog(Embeds(bot))
|
|
|
|