import discord
from discord.ext import commands

class Pikl:
	"""Super pikly commands."""

	def __init__(self, bot):
		self.bot = bot

	@commands.command(hidden=False)
	async def helloworld(self):
		"""Hello, world!"""
		await self.bot.say("Hello, world!")

	@commands.command(hidden=False)	
	async def postraidembed(self):
		"""Posts an embedded message with a bunch of raid info"""
		embed = discord.Embed(colour=discord.Colour(0x2ecc40), description="Some helpful information to aid and review [Dawn] raids.\n")

		embed.set_image(url="https://cdn.discordapp.com/attachments/350137990959464459/354412417381433354/unknown.png")
		embed.set_thumbnail(url="https://wiki.guildwars2.com/images/5/5e/Legendary_Insight.png")
		embed.set_author(name="Dawn Raid Information", icon_url="http://raid.pikly.uk/images/dawn-logo.png")
		embed.set_footer(text=": 'Stack on Pikl'", icon_url="http://raid.pikly.uk/images/dawn-logo.png")

		embed.add_field(name="Raid Logs & Videos", value="https://raid.pikly.uk/", inline=True)
		embed.add_field(name="Raid Class Spreadsheet", value="[Spreadsheet here](https://docs.google.com/spreadsheets/d/1zm46Jb8UBIoYP1_mewoOvLKopx_Sks9hYGm8OeWaQI8/edit?usp=sharing)", inline=True)

		await self.bot.say(embed=embed)

def setup(bot):
	bot.add_cog(Pikl(bot))