KiTTY, un bot Discord qui est un petit chat :) Il est basé sur une ancienne version du bot Red, sous Python 3.6 et qui a des fonctionnalités bien sympatiques !
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

39 lines
975B

  1. import asyncio
  2. import nekos
  3. import discord
  4. from discord.ext import commands
  5. import aiohttp
  6. class cat:
  7. def __init__(self, bot):
  8. self.bot = bot
  9. @commands.command()
  10. async def cat(self):
  11. """Send a random cat picture on the channel"""
  12. cats = nekos.cat()
  13. await self.bot.say(cats)
  14. @commands.command()
  15. async def why(self):
  16. """Why the xbox live is better than psn ?"""
  17. why = nekos.why()
  18. await self.bot.say(why)
  19. @commands.command()
  20. async def fact(self):
  21. """The biggest cat in the world is Maine Coon, this cat weight 25kg"""
  22. facts = nekos.fact()
  23. embed=discord.Embed(color=0x717171)
  24. embed.add_field(name="KiTTY/Deo", value=facts, inline=False)
  25. await self.bot.say(embed=embed)
  26. @commands.command()
  27. async def emote(self):
  28. """Because I need more cat emotes"""
  29. emote = nekos.textcat()
  30. await self.bot.say(emote)
  31. def setup(bot):
  32. bot.add_cog(cat(bot))