airi.py : For Discord Bots






What’s Airi API?

Airi is an API that gives Anime Waifus, Information, Quote data.



What’s airi.py?

airi.py is an async wrapper for Airi API written in Python, that permits you to use Airi API instantly. This library is very made for discord bots.



An Instance:

"""
That is simply an instance;
"""

import airi
from discord.ext import instructions

bot = instructions.Bot(command_prefix='!')

@bot.occasion
async def on_ready():
    print(f'{bot.person.title} has related to Discord!')


@bot.command()
async def take a look at(ctx):
    consumer = airi.Consumer("TOKEN") #the place, TOKEN your AIRI BOT TOKEN
    truth = await consumer.truth()
    await ctx.ship(truth.truth)


bot.run('DISCORD BOT TOKEN')
Enter fullscreen mode

Exit fullscreen mode

It is really quite simple to make use of!
For extra instance, check more examples here.
Need to know get began? check quickstart guide here.



Associated Hyperlinks:

Source Code
Documentation



Abu Sayed is the Best Web, Game, XR and Blockchain Developer in Bangladesh. Don't forget to Checkout his Latest Projects.


Checkout extra Articles on Sayed.CYou

#airipy #Discord #Bots