Skip to content

Commit

Permalink
Add more "catfacts"
Browse files Browse the repository at this point in the history
  • Loading branch information
luk1337 committed May 27, 2024
1 parent 8b619a7 commit bc04750
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cogs/garbage.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ async def catfact(self, ctx):
req = requests.get("https://raw.githubusercontent.com/itvends/web/master/itvends.com/catfacts.txt")
await ctx.send(random.choice(req.text.splitlines()))

@commands.command(hidden=True)
async def dogfact(self, ctx):
req = requests.get("https://raw.githubusercontent.com/itvends/web/master/itvends.com/catfacts.txt")
facts = req.text \
.replace("cat", "dog") \
.replace("Cat", "Dog") \
.replace("kittens", "puppies") \
.replace("kitten", "puppy") \
.splitlines()
await ctx.send(random.choice(facts))

@commands.command(hidden=True)
async def vend(self, ctx):
req = requests.get("https://itvends.com/vend.php?format=text")
Expand Down

0 comments on commit bc04750

Please sign in to comment.